public DCard Draw() { DCard draw = Cards[0]; Cards.RemoveAt(0); return(draw); }
public void Shuffle() { Random rng = new Random(); int count = Cards.Count; while (count > 1) { count--; int rand = rng.Next(count + 1); DCard card = Cards[rand]; Cards[rand] = Cards[count]; Cards[count] = card; } }