I have a function which shuffles a deck of cards the problem is when the function is called again it sits there and does nothing
I have no idea why it does that. This pauses even when its in a smaller app just to debug the function so its not the I am using in my program that uses it.Code:void shuffleDeck(int wDeck[4][13]) { int card, row, column; /* Randomize */ srand(time(NULL)); for (card=1;card<=52;card++) { row = rand() % 4; column = rand() % 13; while (wDeck[row][column] != 0) { row = rand() % 4; column = rand() % 13; } wDeck[row][column] = card; } }