rGeometric

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

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 rGeometric(pSuccess: Double, stream: RNStreamIfc = defaultRNStream()): Int

Return

the random value

Parameters

pSuccess

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

stream

the random number stream