Share via


random Method (JScript 5.6) 

Returns a pseudorandom number between 0 and 1.


Math.random( ) 

Remarks

The pseudorandom number generated is from 0 (inclusive) to 1 (exclusive), that is, the returned number can be zero, but it will always be less than one. The random number generator is seeded automatically when JScript is first loaded.

Requirements

Version 1

Applies To: Math Object (JScript 5.6)

See Also

Reference

pow Method (JScript 5.6)