Versions in this module Expand all Collapse all v0 v0.1.4 Jun 1, 2024 v0.1.3 May 5, 2024 Changes in this version + func BetaGen(alpha, beta float64, randOpt ...Rand) float64 + func BinomialGen(n, p float64, randOpt ...Rand) float64 + func BoolP(p float64, randOpt ...Rand) bool + func BoolP32(p float32, randOpt ...Rand) bool + func GammaGen(alpha, beta float64, randOpt ...Rand) float64 + func GaussianGen(mean, sigma float64, randOpt ...Rand) float64 + func IntMeanRange(mean, rnge int64, randOpt ...Rand) int64 + func IntMinMax(min, max int64, randOpt ...Rand) int64 + func IntZeroN(n int64, randOpt ...Rand) int64 + func PChoose32(ps []float32, randOpt ...Rand) int + func PChoose64(ps []float64, randOpt ...Rand) int + func PermuteFloat32s(ins []float32, randOpt ...Rand) + func PermuteFloat64s(ins []float64, randOpt ...Rand) + func PermuteInts(ins []int, randOpt ...Rand) + func PermuteStrings(ins []string, randOpt ...Rand) + func PoissonGen(lambda float64, randOpt ...Rand) float64 + func SequentialInts(ins []int, start int) + func UniformMeanRange(mean, rnge float64, randOpt ...Rand) float64 + func UniformMinMax(min, max float64, randOpt ...Rand) float64 + func ZeroOne(randOpt ...Rand) float64 + type Rand interface + ExpFloat64 func() float64 + Float32 func() float32 + Float64 func() float64 + Int func() int + Int31 func() int32 + Int31n func(n int32) int32 + Int63 func() int64 + Int63n func(n int64) int64 + Intn func(n int) int + NormFloat64 func() float64 + Perm func(n int) []int + Seed func(seed int64) + Shuffle func(n int, swap func(i, j int)) + Uint32 func() uint32 + Uint64 func() uint64 + type RandDists int32 + const Beta + const Binomial + const Gamma + const Gaussian + const Mean + const Poisson + const RandDistsN + const Uniform + func RandDistsValues() []RandDists + func (i *RandDists) SetInt64(in int64) + func (i *RandDists) SetString(s string) error + func (i *RandDists) UnmarshalText(text []byte) error + func (i RandDists) Desc() string + func (i RandDists) Int64() int64 + func (i RandDists) MarshalText() ([]byte, error) + func (i RandDists) String() string + func (i RandDists) Values() []enums.Enum + type RandParams struct + Dist RandDists + Mean float64 + Par float64 + Var float64 + func (rp *RandParams) Defaults() + func (rp *RandParams) Gen(randOpt ...Rand) float64 + type Seeds []int64 + func (rs *Seeds) Init(n int) + func (rs *Seeds) NewSeeds() + func (rs *Seeds) Set(idx int, randOpt ...Rand) + type SysRand struct + Rand *rand.Rand + func NewGlobalRand() *SysRand + func NewSysRand(seed int64) *SysRand + func (r *SysRand) ExpFloat64() float64 + func (r *SysRand) Float32() float32 + func (r *SysRand) Float64() float64 + func (r *SysRand) Int() int + func (r *SysRand) Int31() int32 + func (r *SysRand) Int31n(n int32) int32 + func (r *SysRand) Int63() int64 + func (r *SysRand) Int63n(n int64) int64 + func (r *SysRand) Intn(n int) int + func (r *SysRand) NewRand(seed int64) + func (r *SysRand) NormFloat64() float64 + func (r *SysRand) Perm(n int) []int + func (r *SysRand) Seed(seed int64) + func (r *SysRand) Shuffle(n int, swap func(i, j int)) + func (r *SysRand) Uint32() uint32 + func (r *SysRand) Uint64() uint64