Math.randomseed

From OpenEUO
Revision as of 21:25, 7 October 2010 by 76.184.213.234 (Talk)

Jump to: navigation, search
math.randomseed (x)

Sets x as the "seed" for the pseudo-random generator: equal seeds produce equal sequences of numbers. Unknown whether the underlying function is thread safe, so don't assume that multiple scripts utilizing math.random are generating independent streams of pseudo-random numbers.