Math.random

Example 1:

var myMath = Math.random()

Example 2:

To get a random number between 1 and 10:

var myRandom = Math.round(Math.random()*10)

Close