Monster. Math

Namespace for math.

Author
  • schukai GmbH

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:
NameTypeDescription
minnumber

starting value of the definition set (default is 0)

maxnumber

end value of the definition set (default is 1000000000)

Since
  • 1.0.0
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