Hi, i am trying to randomly display data from an array. However, there is repetition with the data displayed. How can i display the numbers randomly without repetition. For example, i am displaying "a", "b"....J randomly, but sometimes, the letter "a" is displayed more than once. Here is what i ahve so far.
Function Names() As String
Dim namesArray() As String = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j"}
Dim intRandom As Integer = Int(Rnd() * 10 + 1)
Return namesArray(intRandom - 1)
Any help would be greatly appreciated. Thanks.
Function Names() As String
Dim namesArray() As String = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j"}
Dim intRandom As Integer = Int(Rnd() * 10 + 1)
Return namesArray(intRandom - 1)
Any help would be greatly appreciated. Thanks.