Random parameter

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

@hank_yu 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

1 Like

Thank you so much~~~~~~

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.