package
0.0.0-20240817234603-2c08b5a35ef9
Repository: https://github.com/kittengarten/kittencore.git
Documentation: pkg.go.dev

# Functions

NewChoice creates a new Choice with specified item and weight.
NewChooser initializes a new Chooser for picking from the provided choices.

# Structs

Choice is a generic wrapper that can be used to add weights for any item.
A Chooser caches many possible Choices in a structure designed to improve performance on repeated calls for weighted random selection.