Tony Cappellini wrote:


Has anyone ever measured how random (or deterministic) a given sequence of numbers generated by rand.randint() are?

Using these arguments for rand.randint(0, 10000000 )
if a program which calls rand.randint() runs for 10 hours (or a few days), will it keep generating a repeatable set of numbers at some point? I'm trying to understand the periodicity (or lack of) of the numbers generated by rand.randint()
random uses AFAIK the Mersenne Twister algorithm. See http://en.wikipedia.org/wiki/Mersenne_twister


--
Bob Gailer
Chapel Hill NC
919-636-4239
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to