Difference between revisions of "Math.randomseed"

From OpenEUO
Jump to: navigation, search
 
Line 2: Line 2:
  
 
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.
 
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]]

Latest revision as of 10:10, 9 October 2010

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