API reference › @evolu/common › Random
Random number generation.
Core
| Name | Description |
|---|---|
| Random | A simple wrapper around Math.random(). |
| RandomDep | Dependency wrapper for Random. |
| RandomLibDep | Seedable random number generator supporting many common distributions, provided by the NPM random package. |
| RandomNumber | A random floating point number in [0, 1). |
| createRandom | Creates a Random using Math.random(). |
| createRandomLib | Creates a random number generator from the NPM random package. |
Testing
| Function | Description |
|---|---|
| testCreateRandom | Creates a seeded Random for deterministic tests. |
| testCreateRandomLib | Creates a seeded random number generator from the NPM random package for deterministic tests. |