Вниз
Скачать: 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.006 c
3-8767
Fareader
2002-01-03 15:47
2002.02.04
Тормозит программа под IB 6


1-8824
MJH
2002-01-19 18:17
2002.02.04
AnimatedMenus2000


1-8924
SGS
2002-01-17 18:20
2002.02.04
Как получить версию ActiveX?


1-8892
szap
2002-01-15 19:32
2002.02.04
Какая дата была была 5 дней назад?


6-8962
lsd[52r]
2001-11-13 01:51
2002.02.04
Как научить прогу по IP коннектится?




   Наверх