WeCodeAcademy

Get a random number in a range

Scale Math.random() and round down.

Examplejavascript
Open in editor »

More JavaScript recipes