Add random number command
This commit is contained in:
parent
4717de1712
commit
3b75fe165d
2 changed files with 19 additions and 0 deletions
3
util/randomNumber.js
Normal file
3
util/randomNumber.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
module.exports = function (min, max) {
|
||||
return Math.floor(Math.random() * (max - min + 1) + min);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue