Главная страница
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.012 c
4-9035
Art
2001-12-08 09:01
2002.02.04
Прочитайте вопрос!!!


1-8895
Socol
2002-01-16 15:18
2002.02.04
Скрытые файлы.


3-8749
$hade
2002-01-03 08:08
2002.02.04
Interbase +Transaction....


1-8900
Леванё
2002-01-16 13:00
2002.02.04
Пояему не работает null


1-8809
Alexsum
2002-01-17 09:59
2002.02.04
Ошибка при открытии формы.