Math.randomseed

From GiderosMobile
Revision as of 14:28, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "<source" to "<syntaxhighlight")

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