29.01.2012, 09:12
pawn Код:
#define randomEx(%0,%1) (%0<%1?%0+random(%1-%0+1):%1+random(%0-%1+1))
//Then somewhere in your code...
new str[8];
format(str, sizeof(str), "%c%c%c %03d", randomEx('A', 'Z'), randomEx('A', 'Z'), randomEx('A', 'Z'), random(1000));
//After that compare the string with another ones in your files.