var
number:array [1..100] of integer;
i,r,num,a,k:integer;
begin
write('times:');
readln(num);
for i:=1 to num do
begin
write('input ',i, ' :');
readln(number);
end;
randomize;
for k:=1 to 6 do
begin
r:= number[random(i)+1];
write(r, ' ');
end;
更新1:
應該係話..隨機咁重覆搵...而唔會搵重覆既number
更新2:
...我試左你既方法... 不過run到中間..就唔work... 但多謝你既幫忙