1
0
Fork 0
mirror of https://github.com/ChomeNS/chomens-bot-mc.git synced 2025-07-24 20:58:59 -04:00
chomens-bot-js/util/between.js

14 lines
269 B
JavaScript
Raw Normal View History

2022-08-14 16:51:45 +07: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,
);
},
};