Difference between revisions of "Math.randomseed"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
'''Available since:''' Gideros 2011.6<br/>
=== <translate>Description</translate> ===
+
'''Class:''' [[math]]<br/>
<translate>Sets x as the "seed" for the pseudo-random generator: equal seeds produce equal sequences of numbers.</translate>
+
 
<source lang="lua">
+
=== Description ===
math.randomseed(seed)
+
Sets x as the "seed" for the pseudo-random generator: equal seeds produce equal sequences of numbers.
</source>
+
<syntaxhighlight lang="lua">
=== <translate>Parameters</translate> ===
+
math.randomseed(seed)
'''seed''': (number) <translate>seed for random number generator</translate> <br/>
+
</syntaxhighlight>
 +
 
 +
=== Parameters ===
 +
'''seed''': (number) seed for random number generator<br/>
 +
 
 +
=== See Also ===
 +
'''[[Core.randomSeed]]'''
 +
 
 +
{{Math}}

Latest revision as of 14:30, 13 July 2023