Horusmaster Wrote:and after that cards[iRandomNum]=0 meaning you mark that number=0, after a few rounds all 52 cards are taken. So your program will go through an infinite loop of trying to generate a number that's not taken, but it never will.
and also, the player will never lose because this will never happen:
if(dealerHand <= 21 && dealerHand> 21)
WOOPS LMAO. I mean to make it
if(dealerHand <= 21 && dealerHand> hand)
I'm glad you caught that XD
Edit- It's actually just C, not C++

