예제 #1
0
파일: Die.cs 프로젝트: dnovak252/LV_DOOP
 public Die(int numberOfSides)
 {
     this.numberOfSides   = numberOfSides;
     this.randomGenerator = RandomGenerator.GetInstance();
 }
예제 #2
0
        /*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();
        }