ERROR!

This web site requires Java Script.
You must enable Java Script on
your browser to navigate this site.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

$RAND(n) Function

This math function will return a pseudo-random whole number between 0 and n where n is a number, variable that represents a number, or a math equation that returns a number. If n is a negative number, the returned value will also be negative. If n contains a decimal point, it will be rounded off to the nearest whole number before evaluating.

Examples:

$RAND(5) returns 0, 1, 2, 3, 4, or 5
$RAND(-3) returns 0, -1, -2, or -3
$RAND(3.578564) returns 0, 1, 2, 3, or 4