Creates a new RNG with a random seed.
Entropy is obtained from the JavaScript runtime via crypto.getRandomValues().
Generates a random float between 0.0 and 1.0.
Generates a random 32-bit unsigned integer.
Generates a random 64-bit unsigned integer.
StaticfromCreates a new RNG with a specific seed for reproducible simulations.
Use this when you need deterministic results, such as for testing or replay functionality.
A WASM-compatible random number generator.
This wrapper uses
SmallRnginternally, which is suitable for game simulations where cryptographic security is not required.