Random parameter

Asked Jun 26, 2023·2 replies·Last activity 3 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.

The directive I want to do is !cool
$(touser) Your handsome index is $(1~100)%
how do i complete this command

2 replies

@Artful Owl hi!

Try:

!addcom -cd=5 !cool $(touser) Your handsome index is $(eval indx=Math.floor(Math.random() * 100) + 1; indx)%

Such topic covered in the forum already.

Regards