math random floor code example
Example 1: random number javascript
function getRandomNumberBetween(min,max){
return Math.floor(Math.random()*(max-min+1)+min);
}
getRandomNumberBetween(50,80);
Example 2: javascript random
function random(min, max) {
return ~~(Math.random() * (max - min + 1) + min);
}
random(1, 5);
Example 3: javascript random()
var randomNo = Math.floor(Math.rand() * 10000000001);
console.log(randomNo);
//This will generate random number