how to generate integer random number in javascript code example
Example 1: javascript random number between
Math.floor(Math.random() * 6) + 1
Example 2: generate number using math random in javascript
console.log(Math.round(Math.random() * 10))