Documentation ¶
Overview ¶
Package rand provides utilities to generate random data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Float64 ¶
func Float64() float64
Float64 returns, as a float64, a pseudo-random number in [0.0,1.0).
func GetSource ¶ added in v2.23.3
func GetSource() interface{}
GetSource returns a copy of the current source of the random number generator.
func Int31n ¶
Int31n returns, as an int32, a non-negative pseudo-random number in [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 Seed ¶
func Seed(s int64)
Seed uses the provided seed value to initialize the generator to a deterministic state.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.