JavaScript » Math » random

Syntax:
Math.random()

This method takes no arguments and returns a pseudo-random number between 0 and 1. The random number generator is seeded from the current time.