Random Number Generation (OCR GCSE Computer Science): Revision Note
Exam code: J277
Random Number Generation
What is random number generation?
Random number generation is a programming concept that involves a computer generating a random number to be used within a program to add an element of unpredictability
Examples of where this concept could be used include:
Simulating the roll of a dice
Selecting a random question (from a numbered list)
National lottery
Cryptography
Concept | OCR exam reference | Python |
---|---|---|
Random numbers |
|
|
Examples in Python
Random code |
|
National lottery |
|
Ready to test your students on this topic?
- Create exam-aligned tests in minutes
- Differentiate easily with tiered difficulty
- Trusted for all assessment types

Did this page help you?