改一下
type
Tmydata=array of integer;
-------
---------
function isdiff(mydata1:Tmydata;k:integer):boolean;
var
i:integer;
begin
result:=true;
for i:=0 to high(mydata1) do
if mydata1=k then
result:=false;
end;
function myran(n:integer
m:integer):Tmydata;
var
mydata:Tmydata;
i,ran:integer;
begin
i:=0;
while i<m do
begin
ran:= random;
//showmessage(inttostr(ran));
if isdiff(mydata,ran) then
begin