Difference between revisions of "Math.randomseed"
From GiderosMobile
Line 2: | Line 2: | ||
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
=== Description === | === Description === | ||
− | Sets x as the "seed" for the pseudo-random generator: equal seeds produce equal sequences of numbers. | + | <translate>Sets x as the "seed" for the pseudo-random generator: equal seeds produce equal sequences of numbers.</translate> |
<source lang="lua"> | <source lang="lua"> | ||
math.randomseed(seed) | math.randomseed(seed) | ||
</source> | </source> | ||
=== Parameters === | === Parameters === | ||
− | '''seed''': (number) seed for random number generator <br/> | + | '''seed''': (number) <translate>seed for random number generator</translate> <br/> |
Revision as of 13:34, 23 August 2018
Available since: Gideros 2011.6
Description
Sets x as the "seed" for the pseudo-random generator: equal seeds produce equal sequences of numbers.
math.randomseed(seed)
Parameters
seed: (number) seed for random number generator