Thema: Delphi rand und Random Delphi

Einzelnen Beitrag anzeigen

EWeiss
(Gast)

n/a Beiträge
 
#3

Re: rand und Random Delphi

  Alt 11. Mai 2007, 08:51
Zitat von marabu:
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
Aber sicher doch..
Danke mal wieder für deine Supi Hilfe.

Gruss Emil
  Mit Zitat antworten Zitat