Version: v0.6.1 - Beta.  We welcome contributors & feedback.  THanks!

Math.random

Math.random($min, $max)

Description

Get a random integer between two numbers.

If no arguments are given, return a float between 0.0 and 1.0.

Math.random(1, 10);  //= between 1 and 10
Math.random();       //= between 0.0 and 1.0