KSLCore
Toggle table of contents
R1.2.1
jvm
Platform filter
jvm
Switch theme
Search in API
KSLCore
KSLCore
/
ksl.utilities.random.rng
/
RNStreamIfc
/
rBernoulliBoolean
r
Bernoulli
Boolean
open
fun
rBernoulliBoolean
(
pSuccess
:
Double
=
0.5
)
:
Boolean
Return
the random value as a Boolean value
Parameters
p
Success
the probability of success, must be in (0,1)