var letters = ["A", "B", "C", "D"]; var rnd = Math.random(); var rndK = letters[Math.floor(rnd*letters.length)]; return rndK;