Versions in this module Expand all Collapse all v1 v1.9.0 Oct 3, 2022 Changes in this version + func Seed(seed int64) + type Uniform interface + ClearSeed func() + Initialize func(sampleRange uint64) error + Next func() (uint64, error) + Reset func() + Sample func(length int) ([]uint64, error) + Seed func(int64) + func NewBestUniform(expectedSampleSize int) Uniform + func NewUniform() Uniform + type Weighted interface + Initialize func(weights []uint64) error + Sample func(sampleValue uint64) (int, error) + func NewDeterministicWeighted() Weighted + func NewWeighted() Weighted + type WeightedWithoutReplacement interface + ClearSeed func() + Initialize func(weights []uint64) error + Sample func(count int) ([]int, error) + Seed func(int64) + func NewBestWeightedWithoutReplacement(expectedSampleSize int) WeightedWithoutReplacement + func NewDeterministicWeightedWithoutReplacement() WeightedWithoutReplacement + func NewWeightedWithoutReplacement() WeightedWithoutReplacement