Black Jack program

Hello boys. Im studying programming at school and were working on creating a blackjack program. One of the extra credit features for this is to make a deck so that when you draw from it it wont allow you to draw multiple cards or copies of cards. I am a little stuck here, and was wondering if any of you guys could point out to me some kind of technique i could try out?

My cards are drawn by a random number generator*time modded by 52+1 for the 52 cards, which work together with the visual c++ image list tool.

My idea is this - Set an if statement which checks for whether that card has been drawn and if it has Re-generates a card which is then again checked. I will go try that since i just thought of it. But still would like to see different approaches

Let me know if you require more info!
Topic archived. No new replies allowed.