pick random 1 to 6 javascript code example
Example: generate random number javascript
function randomNumber(min, max) {
return Math.floor(Math.random() * (max - min)) + min;
}
function randomNumber(min, max) {
return Math.floor(Math.random() * (max - min)) + min;
}