Math.random Function (JavaScript)
Returns a pseudorandom number between 0 and 1.
Math.random( )
Supported in the following document modes: Quirks, Internet Explorer 6 standards, Internet Explorer 7 standards, Internet Explorer 8 standards, Internet Explorer 9 standards. See Version Information.
Applies To: Math Object (JavaScript)