math.random javascript 1000 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: how to generate random number in javascript
var randomNo = Math.floor(Math.rand() * 10000000001);
console.log(randomNo);
//This will generate random number