Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MultiIntnNoDup ¶ added in v3.0.1
MultiIntnNoDup returns m multiple random integers of range [0, n) without duplication.
Types ¶
type Uniform ¶
type Uniform struct {
// contains filtered or unexported fields
}
Uniform is a uniform random chooser.
type Weighted ¶
type Weighted struct {
// contains filtered or unexported fields
}
Weighted is a weighted random chooser.
func NewWeighted ¶
NewWeighted creates a weighted random chooser. If src is nil, the rand.Float will be used.
Click to show internal directories.
Click to hide internal directories.