func golang.org/x/exp/rand.Intn
6 uses
golang.org/x/exp/rand (current package)
rand.go#L292: func Intn(n int) int { return globalRand.Intn(n) }
github.com/go-redis/redis/v8
cluster.go#L200: time.Sleep(time.Duration(10+rand.Intn(10)) * time.Millisecond)
cluster.go#L409: n := rand.Intn(len(addrs))
cluster.go#L549: n := rand.Intn(len(nodes)-1) + 1
cluster.go#L589: n := rand.Intn(len(nodes))
github.com/go-redis/redis/v8/internal/hashtag
hashtag.go#L60: return rand.Intn(slotNumber)
![]() |
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. |