Dim myRandom As New Random
Dim myList As New List(Of String)(New String() {"A", "B", "C"})
myList.OrderBy(Function(i) myRandom.Next).ToList()
For k As Integer = 0 To 2
MessageBox.Show(myList.Item(k))
Next
When you run the code, you will see that the MessageBoxes show A,B,C.
I want MessageBoxes show B,C,A or C,B,A or A,C,B or A,B,C or B,A,C or C,A,B according to randomized result.
Note: Using Linq is a must.