Esempio n. 1
0
 //draw
 public CardsANDdeck Draw()
 {
     return(cards[RanNum.Next(cards.Count)]);
 }
Esempio n. 2
0
 //shuffle
 public void Shuffle()
 {
     CardsANDdeck[] shuffled = cards.ToArray().OrderBy(x => RanNum.Next()).ToArray();
     cards = shuffled.ToList();
 }