Quote Originally Posted by Salem View Post
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.
I guess, but drawing a random card is easier, and it accomplishes the same task in the long run. Is there really any benefit besides making the game's programming more realistic?