rBernoulli

fun rBernoulli(pSuccess: Double, streamNum: Int): Double

Return

the random value

Parameters

pSuccess

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

streamNum

the stream number from the stream provider to use


fun rBernoulli(pSuccess: Double, stream: RNStreamIfc = defaultRNStream()): Double

Return

the random value

Parameters

pSuccess

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

stream

the random number stream