Versions in this module Expand all Collapse all v0 v0.0.2 Sep 4, 2024 Changes in this version + func ExpFloat64() float64 + func Float32() float32 + func Float64() float64 + func Int() int + func Int31() int32 + func Int31n(n int32) int32 + func Int63() int64 + func Int63n(n int64) int64 + func Intn(n int) int + func NormFloat64() float64 + func Perm(n int) []int + func Read(p []byte) (n int, err error) + func Seed(seed uint64) + func Shuffle(n int, swap func(i, j int)) + func Uint32() uint32 + func Uint64() uint64 + type LockedSource struct + func (s *LockedSource) Read(p []byte, readVal *uint64, readPos *int8) (n int, err error) + func (s *LockedSource) Seed(seed uint64) + func (s *LockedSource) Uint64() (n uint64) + type PCGSource struct + func (pcg *PCGSource) MarshalBinary() ([]byte, error) + func (pcg *PCGSource) Seed(seed uint64) + func (pcg *PCGSource) Uint64() uint64 + func (pcg *PCGSource) UnmarshalBinary(data []byte) error + type Rand struct + func New(src Source) *Rand + func (r *Rand) ExpFloat64() float64 + func (r *Rand) Float32() float32 + func (r *Rand) Float64() float64 + func (r *Rand) Int() int + func (r *Rand) Int31() int32 + func (r *Rand) Int31n(n int32) int32 + func (r *Rand) Int63() int64 + func (r *Rand) Int63n(n int64) int64 + func (r *Rand) Intn(n int) int + func (r *Rand) NormFloat64() float64 + func (r *Rand) Perm(n int) []int + func (r *Rand) Read(p []byte) (n int, err error) + func (r *Rand) Seed(seed uint64) + func (r *Rand) Shuffle(n int, swap func(i, j int)) + func (r *Rand) Uint32() uint32 + func (r *Rand) Uint64() uint64 + func (r *Rand) Uint64n(n uint64) uint64 + type Source interface + Seed func(seed uint64) + Uint64 func() uint64 + func NewSource(seed uint64) Source + type Zipf struct + func NewZipf(r *Rand, s float64, v float64, imax uint64) *Zipf + func (z *Zipf) Uint64() uint64