Maths.PseudoRandom.RandomWithAvoidance

A class for generating random values which are never too close to previously generated values.

Constructors

RandomWithAvoidance

#
public RandomWithAvoidance(Random random, double min, double max, double[] radii)
Create a new random sequence generator.
random (Random)Random engine.
min (double)Lower range limit.
max (double)Upper range limit.
radii (double[])Sequence of avoidance radii, the sum total of which ought not exceed the range length.

Properties

Lower

#
public double Lower { get; }
Gets the lower limit for the random interval.

Upper

#
public double Upper { get; }
Gets the upper limit for the random interval.

Methods