/// <summary>
 /// Create new random continuous generator which generate values from min included to max excluded
 /// </summary>
 /// <param name="min">Generate values from min (included) or 0 (included) if null</param>
 /// <param name="max">Generate values from max (excluded) or 1 (excluded) if null</param>
 public RandomUniformContinuous(double?min, double?max)
 {
     rng      = new Random(SeedGenerator.GetNextSeed());
     this.min = min;
     this.max = max;
 }
Example #2
0
 /// <summary>
 /// Create new random discrete generator which generate values from min (included) to max (included)
 /// </summary>
 /// <param name="min">Generate values from min (included) or int.MinValue if null</param>
 /// <param name="max">Generate values from max (included) or int.MaxValue if null</param>
 public RandomUniformDiscrete(int?min, int?max)
 {
     rng      = new Random(SeedGenerator.GetNextSeed());
     this.min = min;
     this.max = max + 1;
 }