产生一组1到100,20个随机整数,不得重复并在list1中显示,运用do whole语句,

2025-04-08 03:01:27
推荐回答(1个)
回答1:

do while list1.listcount<20
n=int(100*rnd)+1
for i=0 to list1,listcount-1
if list1(i)=n then exit for

next
if i=list1.listcount then list1.additem n
loop