Nightbreak Java API
Toggle table of contents
JVM
Target filter
JVM
Switch theme
Search in API
Skip to content
Nightbreak Java API
EliteMobs
/
com.magmaguy.elitemobs.utils
/
WeightedProbability
/
pick
pick
public
static
T
pick
<
T
>
(
Map
<
T
,
Double
>
weights
)
Normalize by the largest weight so a finite authored distribution cannot overflow its sum.