Class: Math

Math()

new Math()

Add some methods to standerd JavaScript object.

Methods

(static) randomInt(max) → {Number}

Generates a random integer in the range (0, max-1).
Parameters:
Name Type Description
max Number The upper boundary (excluded)
Returns:
A random integer
Type
Number