Package io.github.mrtesz.teszcore.util
Class Chance.WeightedEntry<T>
java.lang.Object
io.github.mrtesz.teszcore.util.tuple.Pair<Double,T>
io.github.mrtesz.teszcore.util.Chance.WeightedEntry<T>
- Enclosing class:
Chance
A weighted entry holding a chance and a result value, used in
Chance.roll(Collection).
The chance does not need to be normalized (e.g. sum to 1.0) — entries are rolled relative to each other.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
WeightedEntry
-