mir-random — Libmir Archive
Libmir Archive
API Reference Index
mir-random Guide
Dlang.org
Bernoulli2Variable.opCall
mir
random
variable
Bernoulli2Variable
Generates a Bernoulli-distributed boolean value using the given random number generator.
bool
opCall
(RNG gen)
bool
opCall
(RNG* gen)
struct
Bernoulli2Variable
bool
opCall
(
RNG
)
(
scope
RNG
*
gen
)
if
(
isSaturatedRandomEngine
!
RNG
)
mir
random
variable
Bernoulli2Variable
functions
opCall
manifest constants
isRandomVariable
variables
max
min
Generates a Bernoulli-distributed boolean value using the given random number generator.