Нормальная генерация случайных чисел в number

This commit is contained in:
JonnyBro 2022-01-03 01:49:51 +05:00
parent 5d81de4a83
commit fa8168b8c6

View file

@ -23,7 +23,7 @@ class Number extends Command {
if (currentGames[message.guild.id]) return message.error("fun/number:GAME_RUNNING"); if (currentGames[message.guild.id]) return message.error("fun/number:GAME_RUNNING");
const participants = [], const participants = [],
number = Math.floor(Math.random() * 3000); number = ath.floor(this.client.functions.randomNum(100, 10000));
await message.sendT("fun/number:GAME_START"); await message.sendT("fun/number:GAME_START");