API Reference / @evolu/common / Random
Random
🎲
Interfaces
Interface | Description |
---|---|
Random | A simple wrapper around Math.random(). Most apps need only this. For more complex needs check RandomLibDep. |
RandomDep | - |
RandomLibDep | A random number generator using the NPM random package dependency. |
Functions
Function | Description |
---|---|
createRandom | Creates a Random using Math.random(). |
createRandomLib | Creates a RandomLib using the NPM random package. |
createRandomLibWithSeed | Creates RandomLibDep using the NPM random package with a seed which is useful for tests. |
createRandomWithSeed | Creates Random using RandomLibDep with a seed which is useful for tests. |