js math .randome range code example
Example 1: javascript random number between
Math.floor(Math.random() * 6) + 1
Example 2: Math.random javascript double
function getRandomNumberBetween(min,max){
return Math.floor(Math.random()*(max-min+1)+min);
}