public void Shuffle()
 {
     ShuffledDeck = GameDeck.OrderBy(c => Guid.NewGuid()).ToList();
     //foreach (Card card in ShuffledDeck)
     //{
     //    Console.WriteLine(card.ShowCard());
     //}
 }
Exemple #2
0
        public void shuffleGameDeck()
        {
            var rand = new Random();

            GameDeck = GameDeck.OrderBy(x => rand.Next()).ToList();

            //printDeck();
        }
Exemple #3
0
 public void Shuffle()
 {
     ShuffledDeck = GameDeck.OrderBy(c => Guid.NewGuid()).ToList();
 }