Difference between revisions of "Math.randomseed"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
'''Available since:''' Gideros 2011.6<br/>
 
'''Available since:''' Gideros 2011.6<br/>
 +
'''Class:''' [[math]]<br/>
 +
 
=== Description ===
 
=== Description ===
 
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">
+
<syntaxhighlight lang="lua">
math.randomseed(seed)
+
math.randomseed(seed)
</source>
+
</syntaxhighlight>
'''seed''': (number) seed for random number generator ''''''<br/>
+
 
 +
=== Parameters ===
 +
'''seed''': (number) seed for random number generator<br/>
 +
 
 +
=== See Also ===
 +
'''[[Core.randomSeed]]'''
 +
 
 +
{{Math}}

Latest revision as of 14:30, 13 July 2023