Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.02.04;
Скачать: CL | DM;

Вниз

Генератор паролей   Найти похожие ветки 

 
Фэ ©   (2002-01-16 14:55) [1]

Вот что-то похожее.

function RandomRangeString_(Lmin,Lmax: Integer; Up:Boolean): String;
var
x,sl: integer;
begin
result := sNULL;
sl := RandomInteger_(Lmin,Lmax); {длина строки от Lmin до Lmax}
while Length(result) <= sl do begin
x := Byte(RandomInteger_(32, 255)); {общий диапазон символов}
if chr(x) in LatChars then {фильтр}
result := result + chr(x);
end;
if Length(result) > Lmax then
result := Copy(result, 1, Lmax);
if Up then Result := AnsiUpperCase(Result);
end;

function RandomInteger_(iLow, iHigh: Integer): Integer;
begin
result := Trunc(Random(iHigh - iLow)) + iLow;
end;



Страницы: 1 вся ветка

Текущий архив: 2002.02.04;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.007 c
1-8838
Чел
2002-01-19 00:53
2002.02.04
Инсталятор как у Office XP


1-8876
NLO
2002-01-15 06:35
2002.02.04
Загрузить иконку зарегистрированного расширения в ImageList


3-8794
Godfather
2002-01-08 14:13
2002.02.04
Кодировка 1251 в BDE


1-8932
Станислав
2002-01-16 15:36
2002.02.04
Большие числа


7-9011
stalker17
2001-10-20 16:00
2002.02.04
COM порт