31.01.2015, 11:09
RandomLetter()
This function return letter from A-Z.
This function return letter from A-Z.
pawn Код:
// Only support [COLOR="SandyBrown"]uppercase[/COLOR].
RandomLetter() {
new
ret[2];
// Based from strcpy - ****** (Code Optimisation), Simon
strcat((ret[0] = random(26) + 65, ret), "\0", 2);
return ret;
}
// Only support [COLOR="SandyBrown"]lowerrcase[/COLOR].
RandomLetter() {
new
ret[2];
// Based from strcpy - ****** (Code Optimisation), Simon
strcat((ret[0] = random(26) + 97, ret), "\0", 2);
return ret;
}