Beispiel #1
0
 public SeedRNG(int seed, int limit, bool b = false)
 {
     this.seed  = seed;
     this.limit = limit;
     lcg        = new LCG(limit, new Random(seed).Next(0, limit), seed);
     obtained   = new List <int>();
     r          = new Random(seed);
     if (b)
     {
         exp = Enumerable.Range(0, limit).ToList();
     }
 }
Beispiel #2
0
 public SeedRNG(int seed, int limit, bool b = false)
 {
     this.seed = seed;
     this.limit = limit;
     lcg = new LCG(limit, new Random(seed).Next(0, limit),seed);
     obtained = new List<int>();
     r = new Random(seed);
     if (b)
     {
         exp = Enumerable.Range(0, limit).ToList();
     }
 }