CodeNewbie Community

Discussion on: How can I generate random numbers in JavaScript?

Collapse
aaron profile image
Aaron McCollum

This ^^^

Also, you can write (Math.random() * x) + 1 to generate a number between 1 and x.