Может не совсем в тему, но как то писал для себя генератор пароля.
Генерирует разные цифры (буквы)
X++:
static void Job107(Args _args)
{
str randomPassword(int _length = 8) //Случайный пароль
{
int c;
str s;
int ix = 0;
RandomGenerate random = new RandomGenerate();
;
for( ix = 0; ix < _length; ix++ )
{
do
{
c = random.randomInt(65, 122);
}
while (c>90 && c<97);
s += Num2Char(c);
}
return(s);
}
;
info(randomPassword());
}