Guys how to make a command to get a random number from 6 to 36
Guys how to make a command to get a random number from 6 to 36
1 reply
There are so many topics that ask how to generate random numbers and very many ways to do this please search before posting on the forums. There is even an example in the nightbot help docs under the eval section https://docs.nightbot.tv/variables/eval
Here is the formula for literally any random number generator that you could have easily found had you looked for it.
$(eval Math.floor(Math.random()*(Max-Min))+Min))
If Max and Min isn’t clear enough for you in your case Max would be 36 and Min would be 6.