PDA

View Full Version : Good random number generator?


benito
05-25-2009, 04:11 AM
Hi all,

could anyone advice me some good src-code(c/c++) or library for generate random numbers (most as possible, i know they are pseudorandom) in interval <0,1>. I need generate numbers all with the same probability. I need it in one project.
Simple srand(), rand() is not acceptable in my case.

Thanks

Git
05-25-2009, 08:16 AM
Those at this URL have been validated to FIPS 186-2

http://csrc.nist.gov/groups/STM/cavp/documents/rng/rngval.html

Git

benito
05-25-2009, 10:02 AM
Thanks Git!
any srccode where is pure random generator only ?

Git
05-25-2009, 10:44 AM
Well, now we know the relevant standards numbers, I could search for it, but so could you.

Git

benito
05-25-2009, 01:33 PM
Yes there are many and many numbers, but nothing really usefull for me. I need source code in c/c++ for function generate random number.
I go searching more...
Anyway thank you