RandomGenerator:

gen(): number

Generate a random number in [0-1).

returnsA number between 0 and 1.

save(): string

Save the internal state to a string. Used to allow restoring the exact state of the generator.

returnsThe state of the generator as string.

load(data: string ): boolean

Load the state of the generator from a string.

seed(): RNGSeed

Seed of the generator.

seed(value: RNGSeed ):