User Tools

Site Tools


script:module:math

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

script:module:math [2015-11-15 18:41] (current)
Line 1: Line 1:
 +Module that provides math-related functions.
 +
 +
 +====== Functions ======
 +
 +
 +{{Identifier|random}} ( )
 +
 +Returns a random number between 0 and 1.
 +
 +{{Identifier|randInt}} ( {{TypeArgument|Number|low}},​ {{TypeArgument|Number|high}} )
 +
 +Returns a random integer in the range {{Argument|low}} ... {{Argument|high}}. 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)