generate random number between 1 and 5 in 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;
}