Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

How can i get a real random number?

$
0
0
Hi, I've used the RNG function but it doesn't give me a real random value. I get the same values every time I execute my program. The code I use is the next one: RNG rng; int a1; a1 = rng.uniform((double)0, (double)1)*512; Can anybody help me? Thanks in advance

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>