I'm trying to make it so that if my randomly generated card is the same as any of the currently stored cards it will go back and generate a new random card and store it. I'm having issues with trying to find a way to make it recheck each time a new card has been generated.
I have this at the moment but i need someone else to look at it and tell me how i can change the code to make it work properly.
For x As Integer = 0 To 21
drawCard(x)
While (redraw > 1)
For y As Integer = 0 To 21
If randomCards(x) = randomCards(y) Then
drawCard(x)
redraw += 1
End If
Next
End While
Next