module WeightedRandom
Defined in:
weightedrandom.crConstant Summary
-
VERSION =
"0.1.0"
Constructors
- .new(weights : Array(T)) : WeightedRandom(Int32) forall T
- .new(weights : Hash(K, V)) : WeightedRandom(K) forall K, V
Class Method Summary
- .indexed(weights : Array(T)) : WeightedRandom(Int32) forall T
- .keyed(weights : Hash(K, V)) : WeightedRandom(K) forall K, V