Versions in this module Expand all Collapse all v1 v1.0.1 Jun 10, 2024 v1.0.0 Jun 7, 2024 Changes in this version + func NewRand() *rand.Rand + type BytesFlag struct + func NewBytesFlag(spec string) *BytesFlag + func (f *BytesFlag) Bytes(r *rand.Rand, buf []byte) []byte + func (f *BytesFlag) Set(spec string) error + func (f *BytesFlag) String() string + func (f *BytesFlag) Type() string + type Deck struct + func NewDeck(rng *rand.Rand, weights ...int) *Deck + func (d *Deck) Int() int + type Dynamic interface + IncMax func(delta int) + Max func() uint64 + type Flag struct + func NewFlag(spec string) *Flag + func (f *Flag) Set(spec string) error + func (f *Flag) String() string + func (f *Flag) Type() string + type SkewedLatest struct + func NewDefaultSkewedLatest() (*SkewedLatest, error) + func NewSkewedLatest(min, max uint64, theta float64) (*SkewedLatest, error) + func (z *SkewedLatest) IncMax(delta int) + func (z *SkewedLatest) Max() uint64 + func (z *SkewedLatest) Uint64(rng *rand.Rand) uint64 + type Static interface + Uint64 func(rng *rand.Rand) uint64 + type Uniform struct + func NewUniform(min, max uint64) *Uniform + func (g *Uniform) IncMax(delta int) + func (g *Uniform) Max() uint64 + func (g *Uniform) Uint64(rng *rand.Rand) uint64 + type Weighted struct + func NewWeighted(rng *rand.Rand, weights ...float64) *Weighted + func (w *Weighted) Int() int + type Zipf struct + func NewDefaultZipf() (*Zipf, error) + func NewZipf(min, max uint64, theta float64) (*Zipf, error) + func (z *Zipf) IncMax(delta int) + func (z *Zipf) Max() uint64 + func (z *Zipf) Uint64(rng *rand.Rand) uint64