javascript random number between 0 and 10
snippet in javascript

javascript random number between 0 and 10

user1129

Math.floor(Math.random() * 10);

javascript random number between 1 and 3

user3169

Math.floor(Math.random() * 3);

javascript random number

user5057

Math.random() * 10 = 0-10