FridayNightFunkinBoyfriendBot/ChomensJS/util/between.js

14 lines
264 B
JavaScript
Raw Normal View History

2023-12-17 14:55:27 -05:00
module.exports = {
/**
* this code is from somewhere i can't remember...
* @param {Number} min
* @param {Number} max
* @return {Number}
*/
between: function (min, max) {
return Math.floor(
Math.random() * (max - min) + min
)
}
}