rBinomial

open fun rBinomial(pSuccess: Double, nTrials: 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