Could someone whip me up a random chance command

Not familiar with javascript at all.

I need a command that randomly outputs one of two responses with a 96:4 chance.

Thanks.

Type this in you chat

!addcom !(COMMAND_NAME) $(eval var random=(Math.floor(Math.random()*100)+1);random<=96?"RESPONSE_ONE":"RESPONSE_TWO")

The first response is the more common one.

1 Like

Thanks! Missed the terminating bracket, though xd really appreciate it

1 Like

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