Math.randomseed: Difference between revisions

From GiderosMobile
No edit summary
m Text replacement - "</source>" to "</syntaxhighlight>"
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
=== 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>


=== Parameters ===
=== Parameters ===

Latest revision as of 13:30, 13 July 2023