Thema: Delphi rand und Random Delphi

Einzelnen Beitrag anzeigen

marabu

Registriert seit: 6. Apr 2005
10.109 Beiträge
 
#2

Re: rand und Random Delphi

  Alt 11. Mai 2007, 08:48
Hallo Emil,

first try:

Delphi-Quellcode:
const
  N = 1024;
  AMP = 128;
var
  i: Integer;
begin
  Randomize;
  for i := 0 to Pred(N) do
  begin
    audiodata[i] := Random(AMP);
    audiodata[i + N] := Random(AMP) + AMP
  end;
end;
Freundliche Grüße
  Mit Zitat antworten Zitat