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