random numbers
Moderator: General Moderators
random numbers
what's the best way to generate a random number? rand isn't working very well... keeps giving me the same number.
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: random numbers
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.
Apologies for the useless input.
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
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?