Math.randomseed

From OpenEUO
Revision as of 11:10, 9 October 2010 by 76.184.213.234 (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.

Math.random