Module cogs_gamedev::chance [−][src]
Expand description
Random and probabilistic things helpful for games.
Structs
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.