January 2012
Intermediate to advanced
396 pages
8h 16m
English
Follow the given steps:
//Using the deck of cards we created earlier.
List<string> cardNames = deck.Select(c => c.First + " of " + c.Second)
.ToList ();
cardNames.Take(13).Dump("Before Shuffling first 13 cards");
List<string> shuffledDeck = Algorithms.RandomShuffle(cardNames).ToList();
shuffledDeck.Take(13).Dump("After Shuffling first 13 cards");
The RandomShuffle() method randomly shuffles the collections passed as an argument. ...
Read now
Unlock full access