How do random functions work?

Status
Not open for further replies.

htom

Ars Legatus Legionis
12,590
Subscriptor
You can't. Nature can, though, using things like radioactive decay counting. What is created in computer random number generation is pseudo-chaos.

http://www.random.org/essay.html is a good "head node" for links to sites about pseudo-randomness.

Real randomness requires hardware; John Walker's HotBits is a good place to begin. http://www.fourmilab.ch/hotbits/

One of the hard things to do with real random numbers is remembering to keep them for reuse if that's appropriate, and being sure they're destroyed if it's not.
 
Software random number generators are referred to as pseudorandom. That is, they are considered good enough if they satisfy a few conditions (not sure about these):
- Long enough period (depends what you're doing of course)
- Good distribution of the results (this one is hard to define)

Of course they're not really random. Give them the same seed, and they will produce the same "random" numbers over and over again.
 
Status
Not open for further replies.