Randomise number 1-20 command

In my twitch chat, I want to add a command !d20 command which randomises a number between 1 to 20 but I’ve been googling and looking around and there’s no clear set commands or any that work to this day.
Anybody have anything like that?

sure thing… try this…

!addcom !d20 $(eval Math.floor(Math.random()*20)+1)

Thank you so much it worked!

1 Like

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