I need RNG api Help

I have been using this api to imitate the rolling of dice:

$(customapi http://2g.be/twitch/randomnumber.php?=defstart=0&defend20&start=$(1)&end=$(4))

The problem I am running into is having ran the command !dice (number) over 100 times for various imitations of a D3, D4, D12, it has NEVER rolled a 1. That doesn’t seem like an issue but when a 3 sided dice can’t roll anything other than 2 or 3 it is.

Is there something I have set incorrectly in the api or something I can change to fix that??

Any help is appreciated. Thank you.

Using $(customapi http://2g.be/twitch/randomnumber.php?=defstart=0&defend20&start=1&end=3) as the command i am not getting what you seem to have occurring (specifically for the D3) but i honestly don’t see how you are getting that issue instead of other ones.

the command you have currently generates a random number between 0 and 20 but starts at whatever comes after the command and ends at the 4th thing that comes after the command (since you have $(1) and $(4) in the url).

I’m not sure I fully understand either. But using the !(command) and a single number is capping how high the random number goes.

This is the current permutation I have in the command:
$(customapi http://2g.be/twitch/randomnumber.php?=defstart=1&defend=3&start=$(1)&end=$(3))

I’m still unable to get it to roll a 1 after 30+ tries and multiple changes.

If you’d like to check it in my chat, the command is “!dice” and it’s the same as my name here.

If you just want a random number from 1 to 3 just enter in:

$(customapi http://2g.be/twitch/randomnumber.php?&start=1&end=3)

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