API Reference / @evolu/common / Random

Random

🎲

Interfaces

InterfaceDescription
RandomA simple wrapper around Math.random(). Most apps need only this. For more complex needs check RandomLibDep.
RandomDep-
RandomLibDepA random number generator using the NPM random package dependency.

Functions

FunctionDescription
createRandomCreates a Random using Math.random().
createRandomLibCreates a RandomLib using the NPM random package.
createRandomLibWithSeedCreates RandomLibDep using the NPM random package with a seed which is useful for tests.
createRandomWithSeedCreates Random using RandomLibDep with a seed which is useful for tests.

Was this page helpful?