Math.random()

Syntax:

Math.random()

Return:

A pseudo-random number between 0 and 1.

Remarks:

Computer generated numbers are not truly random. However for most general purposes the pseudo-random numbers are more than sufficient. This only affects mathematical theory, not real-world use. No parameters are required.

image\Script_Button.jpgExamples