javascript a function gets max min + and a function generates random from max - min code example
Example: random number between min and max script
function getRandomNumberBetween(min,max){
return Math.floor(Math.random()*(max-min+1)+min);
}
function getRandomNumberBetween(min,max){
return Math.floor(Math.random()*(max-min+1)+min);
}