rBinomial

fun rBinomial(pSuccess: Double, nTrials: Int, streamNum: Int): Int

Return

the random value

Parameters

pSuccess

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

nTrials

the number of trials, must be greater than 0

streamNum

the stream number from the stream provider to use


fun rBinomial(pSuccess: Double, nTrials: Int, stream: RNStreamIfc = defaultRNStream()): Int

Return

the random value

Parameters

pSuccess

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

nTrials

the number of trials, must be greater than 0

stream

the random number stream