How do I get a random percentage from 1% to 100%?

Asked Jan 24, 2021·1 reply·Last activity 5 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.

Example:!storage $(user) remains (random percentage) of unused space.

1 reply

Eval lets us generate numbers

$(user) remains $(eval Math.ceil(Math.random()*100))% of unused space.