discord_bot/util/randomNumber.js

3 lines
No EOL
102 B
JavaScript

module.exports = function (min, max) {
return Math.floor(Math.random() * (max - min + 1) + min);
}