Skip to content

References: Modules and Random Numbers

  1. Python (programming language) — Wikipedia An overview of the Python language, its history, design philosophy, and ecosystem of modules and libraries. Provides background context for understanding why Python's import system and standard library are so widely used.

  2. Modular programming — Wikipedia Explains the concept of breaking programs into separate, reusable modules. Directly relevant to understanding why Python's import statement exists and how organizing code into modules makes programs easier to build and maintain.

  3. Pseudorandom number generator — Wikipedia Covers how computers generate "random" numbers algorithmically, including the methods used by Python's random module. Helps students understand what randint and random.choice are actually doing under the hood.

  4. Python for Kids by Jason R. Briggs (No Starch Press) A beginner-friendly guide written for young programmers, with dedicated sections on using Python's built-in modules including random. Ideal companion reading for students ages 10–13 encountering import and random-number generation for the first time.

  5. Invent Your Own Computer Games with Python by Al Sweigart (free at inventwithpython.com) Uses the random module extensively across multiple game projects such as guessing games and simple simulations. Shows students ages 10–14 exactly how randint and choice are applied in real, playable programs.

  6. Python Docs — random module The official Python documentation for the random module, listing every function including randint, choice, and shuffle with concise descriptions and examples. The authoritative reference when students want to know exactly what a function accepts and returns.

  7. Real Python — Generating Random Data in Python A thorough tutorial covering Python's random module functions with practical examples, comparisons, and use cases. Explains randint, choice, shuffle, and more in a clear, readable style suitable for beginning programmers.

  8. W3Schools — Python Random Module A quick-reference page listing all functions in Python's random module with short, runnable code examples for each. Excellent for students who want to quickly look up syntax for randint, choice, or shuffle while writing their own programs.

  9. Programiz — Python Modules Explains how Python modules work, how to use the import statement, and how to explore module documentation. Covers creating custom modules as well as using built-in ones, directly supporting this chapter's core topics.

  10. GeeksforGeeks — Python Random Module Provides detailed explanations and code examples for the most commonly used functions in Python's random module, including randint, choice, shuffle, and seed. A useful reference with many short, copy-and-test examples for curious students.