Difference between revisions of "Core.randomSeed"
From GiderosMobile
m |
|||
Line 15: | Line 15: | ||
=== Return values === | === Return values === | ||
'''Returns''' () A seed usable for later resuming the RNG<br/> | '''Returns''' () A seed usable for later resuming the RNG<br/> | ||
+ | |||
{{Core}} | {{Core}} |
Revision as of 08:28, 4 January 2020
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