最好自己写.这样印象深些.
闲着没事顺便给你写个了例子.
var
all: array[1..100] of String;
I, cnt, ran: Integer;
select: array[1..35] of Integer;
find: boolean;
begin
for i := 1 to 100 do
all := 'NO.'+IntToStr(i);
for i := 1 to 35 do
select := 0;
Randomize;
cnt := 1;
repeat
ran := Random(100);
find := false;
for i := 1 to 35 do
if select = ran then
find := true;
if not find then
begin
select[cnt] := ran;
Inc(cnt);
end;
until cnt > 35;
for I := 1 to 35 do
begin
Memo1.Lines.Add(Format('题%d=%s', [i, all[select]]));
end;
end;