Math.random()
Top  Previous  Next


SWiSH Player Support
SWF4 or later - Supported Internally

Syntax
Math.random()

Arguments
None.

Returns
A random number.

Description
Returns a random number n, where 0 <= n < 1.
n has a maximum precision of 5 decimal places.

See also
Math.chance(), Math.random(), Math.randomInt() and Max.randomRange().