Namespace for math.
Methods
(static) random(min, max) → {number}
this function uses crypt and returns a random number.
this function uses crypt and returns a random number.
Parameters:
Name | Type | Description |
---|---|---|
min | number | starting value of the definition set (default is 0) |
max | number | end value of the definition set (default is 1000000000) |
- Since
- 1.0.0
- Copyright
- schukai GmbH
- License
- AGPLv3
Throws:
missing crypt
- Type
- Error
we cannot generate numbers larger than 53 bits.
- Type
- Error
the distance is too small to create a random number.
- Type
- Error
Returns:
- Type:
- number