Random Letter api

Hi, I’d like to know if there is a custom api that can generate a random letter. I’m aware of a really useful one that will output a random number >>> http://2g.be/twitch/randomnumber.php?=defstart=1&defend=8000&start=%24(1)&end=%24(2) Could anyone tell me if there is one just like this that will output letters in place of the numbers?

You wouldn’t need an API, something like this can be done using the $(eval) variable.

!addcom !letter $(eval var letter = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"];
var randomLetter = letter[Math.floor(Math.random() * letter.length)]; 
(randomLetter);)

I think I got the alphabet right, but it’s possible I missed out a letter somewhere, because I’m not very bright.

Hope this helps :slight_smile:

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