Вниз
Скачать: 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
6-8967
Burmistroff
2001-11-10 20:28
2002.02.04
Как узнать, прослушивается ли уже данный порт?


4-9035
Art
2001-12-08 09:01
2002.02.04
Прочитайте вопрос!!!


1-8820
shagen
2002-01-18 19:25
2002.02.04
Глупый, но важный вопрос.


6-8963
Begemoth
2001-11-10 18:30
2002.02.04
Счетчик посещений Web-страницы


1-8842
Nicolas_
2002-01-14 17:41
2002.02.04
Dock n drop Как убрать кнопку с заголовка прилепленного окна?




   Наверх