random numbers
Posted: Tue Oct 25, 2005 7:25 pm
what's the best way to generate a random number? rand isn't working very well... keeps giving me the same number.
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
This made me laughOne armed space goat wrote:what's the best way to generate a random number? rand isn't working very well... keeps giving me the same number.
You say this in jest, there are actually many sources of excellent entropy available to "normal" computers. Although rarely tapped, one of the great ones is the thermal registers on "modern" processors. There are online sources of high entropy too.. however, software only solutions do not entirely exist (without some hardware support) so... 50/50..hawleyjr wrote:LOL, everyone knows a computer can't generate a truly random number! Jeesh, don’t you need a Geiger counter for that?