Search and commands

↑ ↓ to select · Enter to open · Esc to close

Type to search packages.

grpcrand

v1.51.4
github.com/lfch/grpc/internal/grpcrand

Documentation

pkg.go.dev ↗

Table of contents

↓ to select · Enter to jump· Shift+Enter for source

7 matches

Top ↑

Package grpcrand implements math/rand functions in a concurrent-safe way with a global random source, independent of math/rand's global source.

Functions

Float64

func Float64() float64

Float64 implements rand.Float64 on the grpcrand global source.

Int

func Int() int

Int implements rand.Int on the grpcrand global source.

Int31n

func Int31n(n int32) int32

Int31n implements rand.Int31n on the grpcrand global source.

Int63n

func Int63n(n int64) int64

Int63n implements rand.Int63n on the grpcrand global source.

Intn

func Intn(n int) int

Intn implements rand.Intn on the grpcrand global source.

Uint64

func Uint64() uint64

Uint64 implements rand.Uint64 on the grpcrand global source.

Dependency graph