Private Sub Command1_Click()
Cls
Font.Size = 40
Dim n As Integer
Dim sierdun(10) As Integer
n = LBound(sierdun)
While n <= 10
sierdun(n) = Int(Rnd * 1000)
n = n + 1
Wend
Dim swap As Integer
m = 1
While m <= 9
n = 1
While n <= 10 - m
If sierdun(n) < sierdun(n + 1) Then
swap = sierdun(n)
sierdun(n) = sierdun(n + 1)
sierdun(n + 1) = swap
End If
n = n + 1
Wend
m = m + 1
Wend
n = 1
While n <= 10
Print sierdun(n)
n = n + 1
Wend
End Sub