Difference between revisions of "Core.randomSeed"
From GiderosMobile
(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...") |
|||
Line 4: | Line 4: | ||
Set the current seed of the specified random number generator. | Set the current seed of the specified random number generator. | ||
<source lang="lua"> | <source lang="lua"> | ||
− | () | + | () = Core.randomSeed(generator,seed) |
</source> | </source> | ||
'''generator:''' (number) PRNG algorithm to use, use 0 for default engine (MT19937) '''optional'''<br/> | '''generator:''' (number) PRNG algorithm to use, use 0 for default engine (MT19937) '''optional'''<br/> | ||
'''seed:''' (number) Seed for that generator '''optional'''<br/> | '''seed:''' (number) Seed for that generator '''optional'''<br/> | ||
'''Returns''' () A seed usable for later resuming the RNG<br/> | '''Returns''' () A seed usable for later resuming the RNG<br/> |
Revision as of 10:11, 23 August 2018
Available since: Gideros 2017.9
Description
Set the current seed of the specified random number generator.
() = Core.randomSeed(generator,seed)
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