User Tools

Site Tools


script:module:math

This is an old revision of the document!


Math (Module)

Module that provides math-related functions.

Functions

random ( )

Returns a random number between 0 and 1.

randInt ( low : Number, high : Number )

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.1574007276.txt.gz · Last modified: 2019-11-17 18:14 by skyjake