JS to generate a random number from 1 to 10

JavaScript Math.random()

Every time you click the button, getRndInteger(min, max) returns a random number between 1 and 10 (both included):

沒有留言:

張貼留言