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 ¶
- func Float64() float64
- func Int() int
- func Int31n(n int32) int32
- func Int63n(n int64) int64
- func Intn(n int) int
- func Uint64() uint64
Functions ¶
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 Uint64 ¶
func Uint64() uint64
Uint64 implements rand.Uint64 on the grpcrand global source.
Source Files ¶
grpcrand.go
- Version
- v1.52.0
- Published
- Jan 10, 2023
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 1 minute ago –
Tools for package owners.