Math.randomseed: Difference between revisions

From GiderosMobile
No edit summary
m Text replacement - "<source" to "<syntaxhighlight"
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>
</source>

Revision as of 13:28, 13 July 2023

Available since: Gideros 2011.6
Class: math

Description

Sets x as the "seed" for the pseudo-random generator: equal seeds produce equal sequences of numbers. <syntaxhighlight lang="lua"> math.randomseed(seed) </source>

Parameters

seed: (number) seed for random number generator

See Also

Core.randomSeed