Documentation ¶
Index ¶
- Variables
- func BigIntN(n *big.Int) *big.Int
- func Bits(b []byte)
- func Bytes(n int) []byte
- func Float64() float64
- func Int(min int, max int) int
- func Int63n(n int64) int64
- func IntN(n int) int
- func Intn(n int) int
- func Ints(from, to, size int) []int
- func Perm(n int) []int
- func Probability(prob float64) bool
- func Random(ss []string) []string
- func Read(b []byte)
- func Shuffle(n int, swap func(i, j int))
- func String(n int) string
- func UUID(length int64) string
- func Uint64n(n uint64) uint64
Constants ¶
This section is empty.
Variables ¶
View Source
var Reader *randReader
Reader is a global, shared instance of a cryptographically strong pseudo- random generator. It uses blake2b as its hashing function. Reader is safe for concurrent use by multiple goroutines.
Functions ¶
func Float64 ¶
func Float64() float64
Float64 implements rand.Float64 on the grpcrand global source.
func Read ¶
func Read(b []byte)
Read is a helper function that calls Reader.Read on b. It always fills b completely.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.