Private Sub Command1_Click()
Dim m(9) As Integer
Dim a As Integer
Dim i As Integer
Dim j As Integer
a = 0
For i = 0 To 9
m(i) = 10 + Int(Rnd * 89)
Next
Text1.Text = m(0) & "," & m(1) & "," & m(2) & "," & m(3) & "," & m(4) & "," & m(5) & "," & m(6) & "," & m(7) & "," & m(8) & "," & m(9)
For i = 0 To 9
For j = i To 8
If m(i) < m(j + 1) Then
a = m(i)
m(i) = m(j + 1)
m(j + 1) = a
End If
Next j
Next i
Text2.Text = m(0) & "," & m(1) & "," & m(2) & "," & m(3) & "," & m(4) & "," & m(5) & "," & m(6) & "," & m(7) & "," & m(8) & "," & m(9)
End Sub