this slowpoke moves

Generate Speakable Passwords

function SpeakAblePassWord: string;
const
  conso: array [0..19] of Char = ('b', 'c', 'd', 'f', 'g', 'h', 'j',
    'k', 'l', 'm', 'n', 'p', 'r', 's', 't', 'v', 'w', 'x', 'y', 'z');
  vocal: array [0..4] of Char = ('a', 'e', 'i', 'o', 'u');
var
  i: Integer;
begin
  Result := '';
  for i := 1 to 6 do
  begin
    Result := Result + conso[Random(19)];
    Result := Result + vocal[Random(4)];
  end;
end;
Beispiel :
procedure TForm1.Button1Click(Sender: TObject);
begin
 Label1.Caption := SpeakAblePassWord;
end;

Keine Kommentare:

Kommentar veröffentlichen

Beliebte Posts

Translate