Math.random() - 0.5 js code example
Example: random js
function randomNumber(min, max) {
return Math.floor(Math.random() * (max - min)) + min + 1;
}
function randomNumber(min, max) {
return Math.floor(Math.random() * (max - min)) + min + 1;
}