[Tutor] How trustworthy are pseudo-random numbers?
Daniele
d.conca at gmail.com
Fri Oct 3 16:11:42 CEST 2008
>> [Alec Henriksen]
>> > How trustworthy is the "randomness" generated by the random module?
>>
>> Python uses the Mersenne Twister algorithm for generating
>> pseudo-random numbers, and that's one of the highest-quality methods
>> known.
>From here
http://en.wikipedia.org/wiki/Pseudorandom_number_generator#Periodicity
and here
http://en.wikipedia.org/wiki/Mersenne_twister#Advantages
I think it can be argued that the randomness is pretty trustworthy :o)
More information about the Tutor
mailing list