Two response percentage command

Hello I’m trying to make a command that 4% of the time will say one thing and 96% of the time say something else?

I found a post on here and got this command from it:

!addcom !question $(eval Math.floor(Math.random()*100)==99?‘Yes’:‘No’)

I tried using this and changing somethings but I only ever get one answer.I play a game called Dead By Daylight and jumping off thehook (Kobe-ing) has a 4% chance so I wanted it to be like that. Is this possible?

I tried this and tried other percentages too like 50% to be sure that it worked for both responses:

!addcom !Kobe $(eval Math.floor(Math.random()*100)==96?’$(user) Kobied!’:’$(user) did not Kobe’)

Here’s a fix.

!addcom -cd=5 !Kobe $(eval Math.ceil(Math.random()*100)>96?`$(user) Kobied!`:`$(user) did not Kobe`)
1 Like

Thank you so much! :smiley:

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