#include <CNCL/DiscUniform.h>
CN_DISCUNIFORM
CNRandom
None
CNRNG
CNDiscUniform
is a discrete uniform distribution with interval
limits low
and high
. It generates discrete (i.e. integer)
values.
Constructors:
CNDiscUniform();
CNDiscUniform(CNParam *param);
CNDiscUniform(long low, long high, CNRNG *gen);
CNDiscUniform
distribution with a base random number
generator gen
and the parameters low
and high
.
In addition to the member functions required by CNCL, CNDiscUniform
provides:
long low();
long low(long x);
long high();
long high(long x);
virtual double operator() ();
Go to the first, previous, next, last section, table of contents.