Вниз
Скачать: 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 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.007 c
1-8830
ТеньЛуны
2002-01-15 11:14
2002.02.04
Пару дней назад...


1-8928
SergN
2002-01-17 16:34
2002.02.04
Как в Memo записать текстовый DOS файл?


1-8914
Ser
2002-01-15 03:19
2002.02.04
Delphi


1-8902
LoHoVski
2002-01-16 16:42
2002.02.04
Не компилирует любые пакеты без PAS-файлов ПОМОГИТЕ!


1-8836
MARcoDEN
2002-01-12 12:42
2002.02.04
Запущена ли программа?




   Наверх