I want to create a random number command. with only numbers 90-100

Asked Apr 20, 2024·1 reply·Last activity 2 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

I want to create a random number command. with only numbers 90-100 But I don't want the numbers 1-80. Is there any way that this can be done?

1 reply

You can place this eval anywhere within your command to get a random number between 90-100:

$(eval Math.floor(Math.random() * 11) + 90)