Skip to content

Glossary: Coding Interviews

random.seed(1)

Also written: random.seed, random.randint, seed

Starts Python's random numbers from a fixed point, so every run uses the same inputs and a failing test can be repeated. `random.randint(a, b)` picks a whole number including both ends.

Where the book teaches it

Related terms

Brute-force checker