Example #1
0
 public double RandomDouble(ConstraintRange <double> constraint) =>
 (random.NextDouble() * (constraint.Max - constraint.Min)) + constraint.Min;
Example #2
0
 public int RandomInteger(ConstraintRange <int> constraint) =>
 random.Next(constraint.Min, constraint.Max);