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

This commit is contained in:
Loïc Bersier 2019-07-25 06:50:58 +02:00
parent d1f4231790
commit fc8379d887

View file

@ -1,7 +1,7 @@
exports.random = function (text, message) { exports.random = function (text, message) {
// Generate a random number // Generate a random number
function randNumber(file) { function randNumber(file) {
let Rand = Math.floor((Math.random() * file.length) + 1); let Rand = Math.floor((Math.random() * file.length));
return Rand; return Rand;
} }