[Tutor] Determining periodicity of rand.randint()

bob gailer bgailer at gmail.com
Sat Jan 31 22:04:07 CET 2009

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 

Bob Gailer
Chapel Hill NC

More information about the Tutor mailing list