public Die(int numberOfSides) { this.numberOfSides = numberOfSides; this.randomGenerator = RandomGenerator.GetInstance(); }
/*private Random randomGenerator;*/ /*public Die(int numberOfSides, Random random) * { * this.numberOfSides = numberOfSides; * this.randomGenerator = random; * }*/ public Die(int numberOfSides) { this.numberOfSides = numberOfSides; /*this.randomGenerator = new Random();*/ this.random = RandomGenerator.GetInstance(); }