User Tools

Site Tools


script:module:math

Module that provides math-related functions.

Functions

random ( )

Returns a random number between 0 and 1.

randInt ( Number|low, Number|high )

Returns a random integer in the range lowhigh. The range is inclusive at both ends, so this is possible:

$ Math.randInt(0, 3) ⇒ 3

script/module/math.txt · Last modified: 2015-11-15 18:41 (external edit)