Example #1
0
        static void Main(string[] args)
        {
            //ITilfældighedsGenerator r = new TilfældighedsGeneratorMock();
            ITilfældighedsGenerator r = TilfældighedsGeneratorHjælper.FindGenerator();
            Terning t = new Terning(r);

            Console.WriteLine(t);
        }
Example #2
0
 public Terning(ITilfældighedsGenerator g = null)
 {
     if (g == null)
     {
         g = new TilfældighedsGeneratorRandom();
     }
     rnd = g;
     this.Ryst();
 }
Example #3
0
 public Terning(ITilfældighedsGenerator rnd)
 {
     generator = rnd;
     Ryst();
 }
Example #4
0
 public Terning(ITilfældighedsGenerator input)
 {
     Rnd = input;
 }
Example #5
0
 public Terning(ITilfældighedsGenerator g)
 {
     rnd = g;
     this.Ryst();
 }
Example #6
0
 public Terning()
 {
     rnd = new TilfældighedsGeneratorSystemRandom();
     this.Ryst();
 }
Example #7
0
 public Terning()
 {
     rnd = new TilfældighedsGeneratorRandom();
     Ryst();
 }
Example #8
0
 public Terning(ITilfældighedsGenerator i)
 {
     this.rnd = i;
     Ryst();
 }
Example #9
0
 public Terning(ITilfældighedsGenerator tilfældigtTalGenerator)
 {
     this.generator = tilfældigtTalGenerator;
     this.Ryst();
 }