function GetArrayResult(vNum: string):string;
var
aArray: Array [0..9] of integer;
bArray: Array [0..9] of integer;
sList: TStringList;
m, n: integer;
//重组数组
procedure ResetArray(i: integer);
var
i1, i2, i3: integer;
begin
aArray:= -1;
i2:=0;
for i1:=0 to 9do
begin
if aArray[i1]<>-1 then
begin
bArray[i2]:= aArray[i1];
inc(i2);
end else
continue;
end;
for i1:=0 to 9do
begin
aArray[i1]:= bArray[i1];
bArray[i1]:= -1;
end;
end;
begin
result:='';
sList:= TStringList.Create;
for m:=0 to 9do
begin
sList.Add(m+1);
end;
//初始化数组
for m:=0 to 9do
begin
aArray[m]:= strtoint(sList.Strings[m]);
bArray[m]:= -1;
end;
//生成随机数
for m:=10do
wnto 1do
begin
n:= random(m);
if result='' then
result:= inttostr(aArray[n])
else
result:= result+'.'+inttostr(aArray[n]);
//重组数组
ResetArray;
end;