BernoulliPicker

constructor(successProbability: Double, successOption: T, failureOption: T, streamNum: Int = 0, streamProvider: RNStreamProviderIfc = KSLRandom.DefaultRNStreamProvider)

Parameters

successProbability

the probability associated with success

successOption

the success choice

failureOption

the failure choice

streamNum

the random number stream number, defaults to 0, which means the next stream

streamProvider

the provider of random number streams, defaults to KSLRandom.DefaultRNStreamProvider