[求助]排列组合问题
怎样在0-10个数中选三个数(不重复)并显示出来.
dimension a(3)
a(1)=int(rand()*10)
for i=2 to 3
do while .t.
b=int(rand()*10)
ok=1
for j=1 to i
if a(j)=b
ok=0
endif
endfor
if ok=1
exit
endif
enddo
a(i)=b
endfor
for i=1 to 3
?a(i)
endfor