I used this code to generate a random number using js:
var max = 10; Math.floor( Math.random() * ( max + 1 ) );
From what I understand, it will generate a number from 0 to 10, but what if I want to create a random number from 1 to 10? or from 5 to 10?
source share