Documentation ¶
Overview ¶
Package grpcrand implements math/rand functions in a concurrent-safe way with a global random source, independent of math/rand's global source.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Shuffle = func(n int, f func(int, int)) {
mu.Lock()
defer mu.Unlock()
r.Shuffle(n, f)
}
Shuffle implements rand.Shuffle on the grpcrand global source.
Functions ¶
func Float64 ¶
func Float64() float64
Float64 implements rand.Float64 on the grpcrand global source.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.