public void Generate(int n) { for (int i = 0; i < n; i++) { int possible = _Random.Next(1, 101); int points = _Random.Next(0, possible + 1); Score s = new Score(points, possible); _Points += s.Points; _Possible += s.Possible; _Scores.Add(s); } }
public void Add(Score score) { _Scores.Add(score); }