Finding Probability of Const Int

Writing program to get probability of getting an ace, jack, queen, or king out of a deck. I have these variables as const int and the probability is set as a while(1 + rand() % 16). My problem is im confused on what to write to generate the probability after drawing an X number of times. Can anyone tell me where to start?
Last edited on
16 chances of getting an ace jack queen or king. 52 cards in a deck. Use a count to count how many aces,jacks, queens, and kings you get, add them up, divide by 52, and multiply by 100.
Topic archived. No new replies allowed.