Go Package math
Jump to navigation
Jump to search
External
Internal
Random Numbers
To get a pseudo-random non-negative int between 0 (inclusive) and n (exclusive), use:
rand.Intn(n int) int
To get a pseudo-random non-negative int between 0 (inclusive) and n (exclusive), use:
rand.Intn(n int) int