[Tutor] How trustworthy are pseudo-random numbers?
Alec Henriksen
alecwh at gmail.com
Fri Oct 3 00:23:04 CEST 2008
Hello list,
How trustworthy is the "randomness" generated by the random module? I
just wrote a script (with the help of some tutors here!) that finds the
largest streak in a series of coin flips.
My collected data:
100 coin flips = 6-7 streak (usually)
1000 coin flips = 10-12 streak (usually)
10000 coin flips = 15-19 streak (usually)
etc etc.
I'm curious, how much can I trust the randomness? I can't really do
100000 coin flips in real life to compare...
--
Alec Henriksen <alecwh at gmail.com> @ http://alecwh.com
More information about the Tutor
mailing list