Dim listaA(10) As Integer
Dim numeroAleatorio As New Random()
listaA(i) = numeroAleatorio.Next(1, 100)
Console.WriteLine("Numeros generados aleatoriamente - ListBox 1")
Console.WriteLine(listaA(i))
For i = 1 To listaA.Length - 1
For j = 0 To listaA.Length - i - 1
If (listaA(j) > listaA(j + 1)) Then
listaA(j + 1) = listaA(j)
Console.WriteLine("Numeros ordenados - ListBox 2")
Console.WriteLine(listaA(i))