Javascript-Expansion/scripts/random_letter.js
2020-03-10 13:15:56 -04:00

8 lines
171 B
JavaScript

function randomLetter() {
var start = "A".charCodeAt(0);
var random = Math.random() * 26;
return String.fromCharCode(start + Math.floor(random));
}
randomLetter();