Вниз
Скачать: 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.008 c
1-8827
SelfDestructor
2002-01-18 19:53
2002.02.04
Как сделать страницу в PageControl невидимой


4-9027
Oxy2
2001-12-07 20:33
2002.02.04
Все о CheckBox е


1-8882
Лана Розанова
2002-01-16 15:13
2002.02.04
Chart и др.


7-9004
Soul
2001-10-25 01:37
2002.02.04
Memory


14-8983
Olgerd
2001-12-08 18:07
2002.02.04
Иконы




   Наверх