BernoulliPicker

constructor(successProbability: Double, successOption: T, failureOption: T, streamNum: Int)


constructor(successProbability: Double, successOption: T, failureOption: T, stream: RNStreamIfc = KSLRandom.nextRNStream())

Parameters

successProbability

the probability associated with success

success

the success choice

failure

the failure choice

stream

the associated random number stream