/**
* 回傳一個隨機的小寫字母
*/
function getLoweracter(unction) {
return getCharacter("lower");;
}
/**
* 回傳一個隨機的大寫字母
*/
function getUpperCharacter(){
return getCharacter("upper");;
}
/**
* 回傳一個字母
*/
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));
}
回傳字元;
}