I'm making a command that randomly rates you when you do $rate. I just couldn't find a way to make a random number generator. This is my code:
execute(message, args) {
var rating = Math.random() * 10 + 1;
message.reply(`I rate you ${rating}/10`);
};
But it doesn't work. Any help?