Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WeightedRandom ¶
type WeightedRandom struct { Max int // contains filtered or unexported fields }
func New ¶
func New(pool []*Item) *WeightedRandom
func (*WeightedRandom) Roll ¶
func (wr *WeightedRandom) Roll() string
Click to show internal directories.
Click to hide internal directories.