Versions in this module Expand all Collapse all v1 v1.0.0 Apr 10, 2026 Changes in this version + var Alpha = "abcdefghijkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789" + func Float32() float32 + func Float64() float64 + func Int31n(n int32) int32 + func Int63n(n int64) int64 + func Intn(n int) int + func NonWeightedChoice(weightArray []int) int + func RandomChoice[T any](array []T, n int) []T + func RandomInt(min, max int) int + func RandomInt32(min, max int32) int32 + func RandomInt64(min, max int64) int64 + func RandomString(l int) string + func Seed(seedType SeedType) int64 + func Shuffle[T any](array []T) + func WeightedChoice(weightArray []int) int + type Randomizer struct + func NewRandomizer(seedType SeedType) *Randomizer + func (r *Randomizer) Float32() float32 + func (r *Randomizer) Float64() float64 + func (r *Randomizer) Int() int + func (r *Randomizer) Int31() int32 + func (r *Randomizer) Int31n(n int32) int32 + func (r *Randomizer) Int63() int64 + func (r *Randomizer) Int63n(n int64) int64 + func (r *Randomizer) Intn(n int) int + func (r *Randomizer) NonWeightedChoice(weightArray []int) int + func (r *Randomizer) RandomString(l int) string + func (r *Randomizer) RangeFloat32(min, max float32) float32 + func (r *Randomizer) RangeFloat64(min, max float64) float64 + func (r *Randomizer) RangeInt(min, max int) int + func (r *Randomizer) RangeInt32(min, max int32) int32 + func (r *Randomizer) RangeInt64(min, max int64) int64 + func (r *Randomizer) RangeUint(min, max uint) uint + func (r *Randomizer) RangeUint32(min, max uint32) uint32 + func (r *Randomizer) RangeUint64(min, max uint64) uint64 + func (r *Randomizer) Uint32() uint32 + func (r *Randomizer) Uint64() uint64 + func (r *Randomizer) WeightedChoice(weightArray []int) int + type SeedType string + const CryptoRandSeed + const MapHashSeed + const RandomStringSeed + const UnixNanoSeed + type Seeder struct + func NewSeeder(seedType SeedType) *Seeder + func (r *Seeder) CryptoRand() int64 + func (r *Seeder) MapHash() int64 + func (r *Seeder) RandomString() int64 + func (r *Seeder) Seed() int64 + func (r *Seeder) UnixNano() int64