nyx/util/functions/function.js
night0721 bc346138dd Bot
2021-06-12 18:53:51 +08:00

8 lines
234 B
JavaScript

function rndint(max, min) {
return Math.floor(Math.random() * (max - (min ? min : 0))) + (min ? min : 0);
}
function random() {
const num = Math.floor(Math.random() * 2);
return num === 1;
}
module.exports = { rndint, random };