Difference between revisions of "Math.randomseed"

From GiderosMobile
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">
 
<source lang="lua">
 
math.randomseed(seed)
 
math.randomseed(seed)
 
</source>
 
</source>
  
=== <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 ===

Revision as of 23:40, 27 April 2022