Difference between revisions of "Math.randomseed"

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

Latest revision as of 14:30, 13 July 2023