Versions in this module Expand all Collapse all v0 v0.1.0 Apr 19, 2020 Changes in this version + func Bernoulli(p float64) bool + func NewMasterseed() ([32]byte, error) + func NewNonce() (uint64, error) + func Rand(min, max int) int + func Subset(s Sampler, k int) []int + type Sampler interface + CanSample func() bool + Replace func() + Sample func() int + SampleReplace func() int + type Uniform struct + N int + func (s *Uniform) CanSample() bool + func (s *Uniform) Replace() + func (s *Uniform) Sample() int + func (s *Uniform) SampleReplace() int + type Weighted struct + Weights []uint64 + func (s *Weighted) CanSample() bool + func (s *Weighted) Replace() + func (s *Weighted) Sample() int + func (s *Weighted) SampleReplace() int