主题:在delphi中如何产生10个随机数!
/*略*/
var
i,t:integer;
begin
for i:=1 to 10 do
randomize;
t:=random(10);
a[i]:=t;
label1.Caption:=label1.Caption+' '+inttostr(t);
end;
/*略*/
此帖转自:[url]http://www.programfan.com/team/team.asp?team_id=1133[/url]
var
i,t:integer;
begin
for i:=1 to 10 do
randomize;
t:=random(10);
a[i]:=t;
label1.Caption:=label1.Caption+' '+inttostr(t);
end;
/*略*/
此帖转自:[url]http://www.programfan.com/team/team.asp?team_id=1133[/url]