- rand_card = ((last + 1.0) * rand()) / (RAND_MAX + 1.0);
- temp = deck->cards[rand_card];
- deck->cards[rand_card] = deck->cards[last];
- deck->cards[last] = temp;
+ for (j = 0; j < 13; ++j)
+ {
+ rand_card = ((last + 1.0) * rand()) / (RAND_MAX + 1.0);
+ temp = deck->cards[rand_card];
+ deck->cards[rand_card] = deck->cards[last];
+ game->players[i]->hand->cards[j] = temp;
+ }