/*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(); }
public Die(int numberOfSides) { this.numberOfSides = numberOfSides; this.randomGenerator = RandomGenerator.GetInstance(); }
public Die2(int numberOfSides) { this.numberOfSides = numberOfSides; this.randomGenerator = new RandomGenerator(); }