Module cogs_gamedev::chance[][src]

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.