Kstats
Toggle table of contents
0.5.0
common
Target filter
common
Switch theme
Search in API
Skip to content
Kstats
kstats-sampling
/
org.oremif.kstats.sampling
/
WeightedCoin
/
WeightedCoin
Weighted
Coin
constructor
(
probability
:
Double
,
random
:
Random
=
Random
)
(
source
)
Parameters
probability
the probability of heads (true). Must be in 0, 1.
random
the random number generator. Defaults to
Random
.