Private Sub Command1_Click()
Dim a(9) As Integer
Randomize
For i = 0 To 9
a(i) = Int(Rnd * 90 + 10)
Next
For i = 0 To 8
For j = i + 1 To 9
If a(i) > a(j) Then
tmp = a(j): a(j) = a(i): a(i) = tmp
End If
Next
Next
For i = 0 To 9
Print a(i)
Next
End Sub