Interface

RandomGenerator

:

gen

(): number

Generate a random number in [0-1).

returns A number between 0 and 1.

save

(): string

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

returns The state of the generator as string.

load

(data: string): boolean

Load the state of the generator from a string.

get

seed

(): RNGSeed

Seed of the generator.

set

seed

(value: RNGSeed)
buildnana logo

Components

Miscellaneous