/**
* returns a random lowercase letter
*/
function getLowerCharacter(){
return getCharacter("lower");;
}
/**
* returns a random uppercase letter
*/
function getUpperCharacter(){
return getCharacter("upper");;
}
/**
* returns a letter
*/
function getCharacter(flag){
var character = "";
if(flag === "lower"){
character = String.fromCharCode(Math.floor( Math.random() * 26) "a".charCodeAt(0));
}
if(flag === "upper"){
character = String.fromCharCode(Math.floor( Math.random() * 26) "A".charCodeAt(0));
}
return character;
}