ReadonlyseedThe initial seed for this generator.
Destroys the generator and releases its resources. After calling this, the generator cannot be used and trying to generate more random data will throw.
A generator releases its resources automatically when garbage-collected. This method is only useful if you want to guarantee prompt destruction if e.g. you are creating and discarding lots of generators.
Generates a random floating-point number in the [0, 1) range,
a la Math.random().
Generates a random 32-bit unsigned integer.
A pseudo-random generator.
⚠️ Memory consumption
Each generator consumes a certain amount of resources from an underlying WebAssembly instance. In order to have a small code size footprint, we make some tradeoffs with regards to memory consumption:
Prnginstances can exhaust the available space. The precise amount is left unspecified, but is in the order of 100s of instances.