References: Modules and Random Numbers¶
-
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.
-
Modular programming — Wikipedia Explains the concept of breaking programs into separate, reusable modules. Directly relevant to understanding why Python's
importstatement exists and how organizing code into modules makes programs easier to build and maintain. -
Pseudorandom number generator — Wikipedia Covers how computers generate "random" numbers algorithmically, including the methods used by Python's
randommodule. Helps students understand whatrandintandrandom.choiceare actually doing under the hood. -
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 encounteringimportand random-number generation for the first time. -
Invent Your Own Computer Games with Python by Al Sweigart (free at inventwithpython.com) Uses the
randommodule extensively across multiple game projects such as guessing games and simple simulations. Shows students ages 10–14 exactly howrandintandchoiceare applied in real, playable programs. -
Python Docs —
randommodule The official Python documentation for therandommodule, listing every function includingrandint,choice, andshufflewith concise descriptions and examples. The authoritative reference when students want to know exactly what a function accepts and returns. -
Real Python — Generating Random Data in Python A thorough tutorial covering Python's
randommodule functions with practical examples, comparisons, and use cases. Explainsrandint,choice,shuffle, and more in a clear, readable style suitable for beginning programmers. -
W3Schools — Python Random Module A quick-reference page listing all functions in Python's
randommodule with short, runnable code examples for each. Excellent for students who want to quickly look up syntax forrandint,choice, orshufflewhile writing their own programs. -
Programiz — Python Modules Explains how Python modules work, how to use the
importstatement, and how to explore module documentation. Covers creating custom modules as well as using built-in ones, directly supporting this chapter's core topics. -
GeeksforGeeks — Python Random Module Provides detailed explanations and code examples for the most commonly used functions in Python's
randommodule, includingrandint,choice,shuffle, andseed. A useful reference with many short, copy-and-test examples for curious students.