mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-30 10:56:55 -05:00
14 lines
269 B
JavaScript
14 lines
269 B
JavaScript
|
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,
|
||
|
);
|
||
|
},
|
||
|
};
|