random number between 1 and 10 javascript math.floor math.random code example
Example 1: javascript random number between
Math.floor(Math.random() * 6) + 1
Example 2: random number in javascript
var randomNo = Math.floor(Math.rand() * 10000000001);
console.log(randomNo);
//This will generate random number