Core.randomSeed
From GiderosMobile
Available since: Gideros 2017.9
Class: Core
Description
Set the current seed of the specified random number generator.
<syntaxhighlight lang="lua"> () = Core.randomSeed(generator,seed) </source>
Parameters
generator: (number) PRNG algorithm to use, use 0 for default engine (MT19937) optional
seed: (number) Seed for that generator optional
Return values
Returns () A seed usable for later resuming the RNG