rNegBinomial

fun rNegBinomial(pSuccess: Double, rSuccesses: Double, streamNum: Int): Int

Return

the random value

Parameters

pSuccess

the probability of success

rSuccesses

number of trials until rth success

streamNum

the stream number from the stream provider to use


fun rNegBinomial(pSuccess: Double, rSuccesses: Double, stream: RNStreamIfc = defaultRNStream()): Int

Return

the random value

Parameters

pSuccess

the probability of success

rSuccesses

number of trials until rth success

stream

the random number stream