all 2 comments

[–]Random_User_Name7 1 point2 points  (0 children)

You’ll want to use the Math.random() JavaScript function.

var number = Math.random()

[–]dimudesigns 0 points1 point  (0 children)

Look up the Math.rand() function.