-
-
Save anonymous/6fa4ab206c9670505914 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void GenerateCards(int cards[], int numCards){ | |
int nums[24]={0}; | |
for(int i = 0;i<24;i++){ | |
nums[i]=i+1; | |
} | |
for (int i=0;i<numCards;i++){ | |
cards[i] = rand() % 24 + 1; | |
bool CardAlreadyPicked(cards,numCards,cardToCheck); | |
} | |
} | |
bool CardAlreadyPicked(int cards[], int numCards, int cardToCheck){ | |
for(int i=0; i<5; i++){ | |
if (cards[i] ==) | |
return true; | |
} | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment