var myMath = Math.random()
To get a random number between 1 and 10:
var myRandom = Math.round(Math.random()*10)