Difference between revisions of "Math.randomseed"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === Sets x as the "seed" for the pseudo-random generator: equal seeds produce equal sequences of numbers....")
 
Line 4: Line 4:
 
Sets x as the "seed" for the pseudo-random generator: equal seeds produce equal sequences of numbers.
 
Sets x as the "seed" for the pseudo-random generator: equal seeds produce equal sequences of numbers.
 
<source lang="lua">
 
<source lang="lua">
= math.randomseed(seed,)
+
math.randomseed(seed)
 
</source>
 
</source>
'''seed:''' (number) seed for random number generator ''''''<br/>
+
'''seed''': (number) seed for random number generator ''''''<br/>

Revision as of 10:21, 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)

'seed: (number) seed for random number generator '