WeightedDice
Parameters
weights
a map from each outcome to its non-negative finite weight. At least one weight must be positive. The iteration order of the map determines the internal ordering of outcomes; use an insertion-ordered map (e.g. linkedMapOf) for reproducible results with a seeded random.
random
the random number generator. Defaults to Random.
Type Parameters
T
the type of outcomes.