WeCodeAcademy
❮ Math.sqrt()Math.PI ❯

Math.random()

A random number from 0 up to (not including) 1.

Group: Math

Syntax

Math.random()

Example

Examplejavascript
Open in editor »

← All of JavaScript Reference