RandomG.UniformRSymmDistribution

uniform distribution on the subrange (-to;to) for integers, (-to;0)u(0;to) for floats excludeZero controls if the zero should be excluded, boundCheck if the boundary should be excluded for floats

class RandomG(SourceT = DefaultEngine)
struct UniformRSymmDistribution (
T
bool boundCheck = true
bool excludeZero = isFloat!(T)
) {}

Members

Functions

getRandom
T getRandom()

returns a random number

opCall
UniformRSymmDistribution opCall(U a)

chainable call style initialization of variables (thorugh a call to randomize)

randomize
U randomize(U a)

initialize el

Static functions

create
UniformRSymmDistribution create(RandomG r, T to)

initializes the probability distribution

Variables

r
RandomG r;
Undocumented in source.
to
T to;
Undocumented in source.

Meta