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