Random module
#include "diplib/random.h"
dip::UniformRandomGenerator class

Generates random floating-point values taken from a uniform distribution.

The operator() method returns the next random value in the sequence. It takes two parameters, the lower and upper bound of the distribution. The values are taken from the half-open interval [lowerBound, upperBound).

The constructor takes and stores a reference to a dip::Random object, which is used to produce the randomness. That object needs to exist for as long as this one exists.

Constructors, destructors, assignment and conversion operators

UniformRandomGenerator(dip::Random& generator) explicit
Constructor

Operators

auto operator()(dip::dfloat lowerBound, dip::dfloat upperBound) -> dip::dfloat
Get the next random value, using the given parameters.