Hi, I have some code here for randomizing an array of names. How can I make the array so that it will NOT repeat names?
Thanks for any help!
Code:
Dim nameArr
nameArr = Array("Mike","John","Ken","Mark","Kim","Cindy","Joe")
Randomize
For i = 0 To 2
MsgBox nameArr(Int(Rnd*7))
Next
Thanks for any help!