Files
dsabot/functions/Random.js
TobenderZephyr 924fca5b90 add more tests (#26)
* added more tests

* (fix) no cpu profile.
2021-04-29 19:42:51 +00:00

15 lines
258 B
JavaScript

const Random = { int, use };
function int(min, max) {
if (!min || !max) {
return;
}
return Math.floor(Math.random() * (Math.floor(max) - Math.ceil(min) + 1)) + min;
}
function use(str) {
return true;
}
module.exports = { Random };