katlib
2.2.1
katlib
/
dev.forst.katlib
/
getWeightedRandom
get
Weighted
Random
fun
<
T
>
Map
<
T
,
Double
>
.
getWeightedRandom
(
rand
:
Random
)
:
T
Content copied to clipboard
Randomly selects item with respect to the current weight distribution.
Sources
Katlib source
Link copied to clipboard