Hopefully this is in the right section.
I'm trying to write a short program which deals 20 random
playing cards. At the moment I just have a card class, containing a randomCard method, which generates two random numbers and assigns them to a specific suit and value (using switch statements). I then return the card as a
string and run a for loop in the main class to print out the 20
cards. I'm struggling to think of a way to check for duplication. How would I virtually take a card out the deck once it is delt so that it isnt generated again?
Hopefully I want to turn this into a full version of the game 'pontoon'. What classes should I use and how should they interact with each other?
Many thanks,
Matt