Core.randomSeed

From GiderosMobile
Revision as of 10:02, 23 August 2018 by Hgy29 (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2017.9<br/> === Description === Set the current seed of the specified random number generator. <source lang="lua"> (), = Core.randomSe...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2017.9

Description

Set the current seed of the specified random number generator.

(), = Core.randomSeed(generatorseed,)

generator: (number) PRNG algorithm to use, use 0 for default engine (MT19937) optional
seed: (number) Seed for that generator optional
Returns () A seed usable for later resuming the RNG