Difference between revisions of "Math.randomseed"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(2 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> ===
+
=== Parameters ===
'''seed''': (number) <translate>seed for random number generator</translate> <br/>
+
'''seed''': (number) seed for random number generator<br/>
  
 
=== See Also ===
 
=== See Also ===

Latest revision as of 14:30, 13 July 2023