第2个回答 2010-05-13
'无比排序
Private Sub Command1_Click()
Dim a&(101 To 999), i&, j&
Cls
Randomize
For i = 1 To 20
j = Int(Rnd * 899) + 101
a(j) = a(j) + 1
Next
j = 0
For i = 101 To 999
Do While a(i) > 0
j = j + 1
Print i;
If j = 10 Then Print
a(i) = a(i) - 1
Loop
Next
End Sub