Skip to main content Accessibility Feedback

Numbers

Math.random()

Returns a random float (decimal) between 0 and 1.

// returns random decimal
Math.random();

Works back to at least IE6.