public void Start() { WinningNumbers = new NumberGenerator().Generate(); Contestants = new List <Contestant>(); for (var i = 1; i <= 100; i++) { Contestants.Add(new Contestant(this, i)); } }
public Contestant(Lottery lottery, int no) { _lottery = lottery; No = no; Numbers = new NumberGenerator().Generate(); }