16.11.2016, 00:20
PHP код:
new LetterList[] =
{
'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'
};
stock strReplaceChar(string[]) {
for(new i=0, j=strlen(string); i < j; i++) {
if(string[i] == ' ') continue; //just to avoid cutting down the spaces
string[i] = LetterList[random(sizeof(LetterList))];
}
return string;
}