forked from Supositware/Haha-Yes
I don't know why i did +1, Fixed a bug where it would sometime put "undefined"
This commit is contained in:
parent
d1f4231790
commit
fc8379d887
1 changed files with 1 additions and 1 deletions
2
rand.js
2
rand.js
|
@ -1,7 +1,7 @@
|
|||
exports.random = function (text, message) {
|
||||
// Generate a random number
|
||||
function randNumber(file) {
|
||||
let Rand = Math.floor((Math.random() * file.length) + 1);
|
||||
let Rand = Math.floor((Math.random() * file.length));
|
||||
return Rand;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue