Difference between revisions of "Core.randomSeed"
From GiderosMobile
(----) |
|||
Line 1: | Line 1: | ||
− | + | '''Available since:''' Gideros 2017.9<br/> | |
− | + | '''Class:''' [[Core]]<br/> | |
− | ''' | + | |
− | ''' | + | === Description === |
− | === | + | Set the current seed of the specified random number generator. |
− | + | ||
<source lang="lua"> | <source lang="lua"> | ||
() = Core.randomSeed(generator,seed) | () = Core.randomSeed(generator,seed) | ||
</source> | </source> | ||
− | === | + | |
− | '''generator''': (number) | + | === Parameters === |
− | '''seed''': (number) | + | '''generator''': (number) PRNG algorithm to use, use 0 for default engine (MT19937) '''optional'''<br/> |
− | === | + | '''seed''': (number) Seed for that generator '''optional'''<br/> |
− | ''' | + | |
+ | === Return values === | ||
+ | '''Returns''' () A seed usable for later resuming the RNG<br/> | ||
+ | |||
+ | ---- | ||
+ | {{Special:PrefixIndex/Core}} | ||
+ | <br/> |
Revision as of 17:03, 2 December 2019
Available since: Gideros 2017.9
Class: Core
Description
Set the current seed of the specified random number generator.
() = Core.randomSeed(generator,seed)
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