Create a SeededRandom copy with the same state as this one. This is the same as calling SeededRandom.exportState and passing it directly into SeededRandom.fromState.
Exports the current state of the seeded random number generator so it can be cloned to another instance. Use SeededRandom.fromState to consume this state.
Generates the next deterministic pseudo random number.
Static
fromGenerate a new SeededRandom instance from a seed.
Static
fromGenerate a new SeededRandom instance from a specific state.
A class that produces deterministic, pseudo random numbers based on a given seed. This uses the Alea v0.9 algorithm from Johannes Baagøe.
Example
Package
@augment-vir/common