Module chance

Source
Expand description

Random and probabilistic things helpful for games.

Structs§

WeightedPicker
It’s often helpful to have weighted probabilities. This struct serves as a sort of weighted bag; you can give it entries with various weights, and then randomly sample them.