Skip to content

Glossary: Coding Interviews in Go

math/rand

Also written: rng.Intn, rand.Intn

Go's standard package for random numbers. `rng.Intn(9)` gives a whole number from 0 up to but not including 9.

Where the book teaches it

Related terms

Seeded random sourceBrute-force checker