Name

Math.random( ): return a pseudorandom number — ECMAScript v1

Synopsis

Math.random( )

Returns

A pseudorandom number greater than or equal to 0.0 and less than 1.0.

Get JavaScript: The Definitive Guide, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.