rBernoulliBoolean

fun rBernoulliBoolean(pSuccess: Double, stream: RNStreamIfc = defaultRNStream()): Boolean

Return

the random value as a Boolean value

Parameters

pSuccess

the probability of success, must be in (0,1)

stream

the random number stream