Skip to content

Instantly share code, notes, and snippets.

Created December 7, 2013 20:40
Show Gist options
  • Save anonymous/6fa4ab206c9670505914 to your computer and use it in GitHub Desktop.
Save anonymous/6fa4ab206c9670505914 to your computer and use it in GitHub Desktop.
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