I don't know why i did +1, Fixed a bug where it would sometime put "undefined"

merge-requests/4/head
Loïc Bersier 5 years ago
parent d1f4231790
commit fc8379d887

@ -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…
Cancel
Save