示例#1
0
        public void Start()
        {
            WinningNumbers = new NumberGenerator().Generate();
            Contestants    = new List <Contestant>();

            for (var i = 1; i <= 100; i++)
            {
                Contestants.Add(new Contestant(this, i));
            }
        }
示例#2
0
 public Contestant(Lottery lottery, int no)
 {
     _lottery = lottery;
     No       = no;
     Numbers  = new NumberGenerator().Generate();
 }