Export (0) Print
Expand All

random Method

Returns a pseudorandom number between 0 and 1.

function random() : Number

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.

Other Resources

Community Additions

ADD
Show:
© 2015 Microsoft