Random number command

Asked Jan 24, 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.

What is the random number command ? I tried everything can’t find it

1 reply

to generate a random number u just need one of these...

js
$(eval let min=0,max=100;Math.floor(Math.random()*(1+max-min))+min)

and u can set the minimum and maximum numbers after the "let" (currently set to 0 and 100)