func math/rand.Intn
3 uses
math/rand (current package)
rand.go#L337: func Intn(n int) int { return globalRand.Intn(n) }
github.com/go-redis/redis/v8
sentinel.go#L439: return addresses[rand.Intn(len(addresses))], nil
net/http
server.go#L2744: interval := pollIntervalBase + time.Duration(rand.Intn(int(pollIntervalBase/10)))
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |