Skip to content

Glossary: Coding with AI Assistants

random module

Also written: random

Python's module for random numbers, fine for games but predictable, so it must not be used for discount codes or tokens. Use `secrets` instead.

Where the book teaches it

Related terms

secrets module