Version: v0.8.1 - Beta.  We welcome contributors & feedback.

Math.random

Math.random($min, $max) -> number

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