package grpcrand
import "google.golang.org/grpc/internal/grpcrand"
Package grpcrand implements math/rand functions in a concurrent-safe way with a global random source, independent of math/rand's global source.
Index ¶
- Variables
- func ExpFloat64() float64
- func Float64() float64
- func Int() int
- func Int31n(n int32) int32
- func Int63n(n int64) int64
- func Intn(n int) int
- func Uint32() uint32
- func Uint64() uint64
Variables ¶
Shuffle implements rand.Shuffle on the grpcrand global source.
Functions ¶
func ExpFloat64 ¶
func ExpFloat64() float64
ExpFloat64 implements rand.ExpFloat64 on the grpcrand global source.
func Float64 ¶
func Float64() float64
Float64 implements rand.Float64 on the grpcrand global source.
func Int ¶
func Int() int
Int implements rand.Int on the grpcrand global source.
func Int31n ¶
Int31n implements rand.Int31n on the grpcrand global source.
func Int63n ¶
Int63n implements rand.Int63n on the grpcrand global source.
func Intn ¶
Intn implements rand.Intn on the grpcrand global source.
func Uint32 ¶
func Uint32() uint32
Uint32 implements rand.Uint32 on the grpcrand global source.
func Uint64 ¶
func Uint64() uint64
Uint64 implements rand.Uint64 on the grpcrand global source.
Source Files ¶
grpcrand_go1.21.go
- Version
- v1.64.0
- Published
- May 14, 2024
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 1 minute ago –
Tools for package owners.