Originally posted by: Mark R
Pentium III and 4 processors have a true random number generator - based upon the random movement of electrons in a diode (Johnson noise).
Originally posted by: reaz
It's possible. There are several sampling methods which are used to generate random numbers. However, pseudo random numbers are useful for test.
Can a deterministic state machine generate truly random numbers?
Originally posted by: gbuskirk
I will argue that given any mathematical test for "randomness" in a sequence of numbers, there are many algorithmic functions that will generate a sequence that passes that test. And sub-sequences of a truly random stream, submitted to that test, will fail it. What then is randomness?
Originally posted by: BrownTown
Well, it should be noted that nothing is really random. IF you were able to take into account every variable in the equations used then you could predict the outcomes. Its just that in natural phenomenon there are too many variables to actually predict the outcome. If you really knew everything involved then you could crack an algorithm even if it was based on something seemingly random like readioactive decay.
Originally posted by: her209
variable = rand();
Originally posted by: sao123
Originally posted by: BrownTown
Well, it should be noted that nothing is really random. IF you were able to take into account every variable in the equations used then you could predict the outcomes. Its just that in natural phenomenon there are too many variables to actually predict the outcome. If you really knew everything involved then you could crack an algorithm even if it was based on something seemingly random like readioactive decay.
ahhh... so you can tell me the precise location and velocity vector of an electron?
I thinks NOT!!!
A real rand() function would have taken care of it all for you. 😛Originally posted by: Matthias99
That would be an excellent example of how NOT to generate random numbers. At the very least, you have to call srand() first and feed it a (hopefully randomly-generated) number, or else you will always get the same output from rand() (usually, as if you had called srand(0) first).Originally posted by: her209
variable = rand();
I hope your previous 24,753 posts were somewhat more scintillating. Or perhaps preceded by you actually reading the thread you were posting in. 😛