Documentation ¶
Index ¶
- func Bool() bool
- func Float32() float32
- func Float64() float64
- func Get() *rand.Rand
- func HexString(length int) string
- func Int() int
- func Int31() int32
- func Int31Range(min, max int32) int32
- func Int31n(n int32) int32
- func Int63() int64
- func Int63Range(min, max int64) int64
- func Int63n(n int64) int64
- func IntRange(min, max int) int
- func Intn(n int) int
- func NewSyncSource(seed int64) rand.Source
- func NumericString(length int) string
- func Put(r *rand.Rand)
- func Rand() rand.Source
- func Shuffle[S ~[]E, E any](s S) S
- func SyncSource() rand.Source
- func Uint() uint
- func Uint32() uint32
- func Uint32Range(min, max uint32) uint32
- func Uint64() uint64
- func Uint64Range(min, max uint64) uint64
- func UintRange(min, max uint) uint
- func Uintn(n uint) uint
- func WordString(length int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Float32 ¶
func Float32() float32
Float32 returns, as a float32, a pseudo-random number in the half-open interval [0.0,1.0).
func Float64 ¶
func Float64() float64
Float64 returns, as a float64, a pseudo-random number in the half-open interval [0.0,1.0).
func Int31 ¶
func Int31() int32
Int31 returns a non-negative pseudo-random 31-bit integer as an int32.
func Int31Range ¶
Int31Range returns a non-negative pseudo-random 31-bit integer as an int32 between min and max.
func Int31n ¶
Int31n returns, as an int32, a non-negative pseudo-random number in the half-open interval [0,n). It panics if n <= 0.
func Int63 ¶
func Int63() int64
Int63 returns a non-negative pseudo-random 63-bit integer as an int64.
func Int63Range ¶
Int63Range returns a non-negative pseudo-random 63-bit integer as an int64 between min and max.
func Int63n ¶
Int63n returns, as an int64, a non-negative pseudo-random number in the half-open interval [0,n). It panics if n <= 0.
func Intn ¶
Intn returns, as an int, a non-negative pseudo-random number in the half-open interval [0,n). It panics if n <= 0.
func NewSyncSource ¶
func NumericString ¶
NumericString Generate a random number sequence of a given length
func SyncSource ¶
func Uint32Range ¶
Uint32Range returns a pseudo-random 32-bit value as a uint32 between min and max.
func Uint64Range ¶
Uint64Range returns a pseudo-random 64-bit value as a uint64 between min and max.
func Uintn ¶
Uintn returns, as an uint, a non-negative pseudo-random number in the half-open interval [0,n). It panics if n <= 0.
func WordString ¶
Types ¶
This section is empty.