Code:
if ( numCardsDealt == 52 ) {
// reshuffle the deck
numCardsDealt = 0;
}
> I still don't see why shuffling is necessary, either.
Have you ever played blackjack with a deck of real cards?
Try to model the actions you take there.
People do not pick random numbers up to 52, and then check to see if that card has already been drawn.
No, they randomise the order to begin with, and then sequentially draw cards from the top.