Hi to all.
I need help. Quick and easy question. Is it possible to randomize and than delate stream of character pairs(one by one) from the input file? How can I do that?
The input is a stream of character pairs that represent playing cards. For example: 2C, 3H, JH...
What I would like to do is randomize the deck then pick first card in the file and put into new array, and then delate that card from the deck. Then randomize again the deck,take the another first card from the deck, place in the new array, and delating from deck ,and so on untill there will be no more cards in the deck.
Is it possible? If yes how could I do that?
Thank you
mauro21pl 10 Junior Poster in Training
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
mauro21pl 10 Junior Poster in Training
Lerner 582 Nearly a Posting Maven
mauro21pl 10 Junior Poster in Training
Lerner 582 Nearly a Posting Maven
mauro21pl 10 Junior Poster in Training
Lerner 582 Nearly a Posting Maven
DesiShaddy 0 Newbie Poster
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.