nyx/util/functions/function.js

9 lines
234 B
JavaScript
Raw Normal View History

2021-06-12 12:53:51 +02:00
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 };