MCPcopy Create free account
hub / github.com/koding/kite / Int31n

Function Int31n

utils/utils.go:37–39  ·  view source on GitHub ↗

Int31n returns a pseudo-random int32 in range [0, n).

(n int32)

Source from the content-addressed store, hash-verified

35
36// Int31n returns a pseudo-random int32 in range [0, n).
37func Int31n(n int32) int32 {
38 return globalRand.Int31n(n)
39}
40
41// RandomString returns random string read from crypto/rand.
42func RandomString(n int) string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected