Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShuffleWithWeights ¶
Types ¶
type Chooser ¶
type Chooser struct {
// contains filtered or unexported fields
}
A Chooser caches many possible Choices in a structure designed to improve performance on repeated calls for weighted random selection.
func NewChooser ¶
NewChooser initializes a new Chooser for picking from the provided choices.
func NewChooserWithWeights ¶
Click to show internal directories.
Click to hide internal directories.