Difference between revisions of "Math.randomseed"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Available since:''' Gideros 2011.6<br/> | + | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> |
− | === Description === | + | === <translate>Description</translate> === |
<translate>Sets x as the "seed" for the pseudo-random generator: equal seeds produce equal sequences of numbers.</translate> | <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 === | + | === <translate>Parameters</translate> === |
'''seed''': (number) <translate>seed for random number generator</translate> <br/> | '''seed''': (number) <translate>seed for random number generator</translate> <br/> |
Revision as of 07:29, 24 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