math/rand.Rand.Intn (method)

8 uses

	math/rand (current package)
		rand.go#L166: func (r *Rand) Intn(n int) int {
		rand.go#L225: 		j := r.Intn(i + 1)
		rand.go#L337: func Intn(n int) int { return globalRand.Intn(n) }

	github.com/google/go-cmp/cmp
		report_text.go#L18: var randBool = rand.New(rand.NewSource(time.Now().Unix())).Intn(2) == 0

	github.com/google/go-cmp/cmp/internal/diff
		diff.go#L122: var randBool = rand.New(rand.NewSource(time.Now().Unix())).Intn(2) == 0

	github.com/technosophos/moniker
		moniker.go#L24: 	a := n.Descriptor[n.r.Intn(len(n.Descriptor))]
		moniker.go#L25: 	b := n.Noun[n.r.Intn(len(n.Noun))]

	google.golang.org/grpc/internal/grpcrand
		grpcrand.go#L52: 	return r.Intn(n)