|The Message text:
This email was created by [your name] who thought you would be interested in the following Article:
"Random extraction of 5 cards from a deck"
The question: "How can I extract 5 random cards from a deck?" (or similar), appears every now and then at the C/C++ forum.I use the following method:const int CARDS = 52;int card[CARDS]; // the 'card' array represents all of the cardsint i, deck_cards;// initializationfor (i=0;...
CodeProject also contains hundreds of articles, free source code samples and applications to help in your day to day programming. Why not give it a try!