UniformDistribution

Provides an infinite sequence of random numbers uniformly distributed between a and b. The boundaries parameter controls the shape of the interval (open vs. closed on either side). Valid values for boundaries are "[]", "$(LPAREN)]", "[$(RPAREN)", and "()". The default interval is closed to the left and open to the right. If no random number generator is specified, the default rndGen will be used as the source of randomness.

  1. class UniformDistribution(string boundaries = "[)", T, UniformRNG)
  2. class UniformDistribution(T, UniformRNG)
  3. class UniformDistribution(E, UniformRNG)

Constructors

this
this(T a, T b, UniformRNG rng)
Undocumented in source.
this
this(typeof(this) that)
Undocumented in source.

Members

Functions

front
T front()
popFront
void popFront()
save
typeof(this) save()

Range primitives.

Variables

empty
enum bool empty;

Range primitives.

isRandomDistribution
enum bool isRandomDistribution;
Undocumented in source.
max
T max;
Undocumented in source.
min
T min;
Undocumented in source.

Meta