Random Number Generation (OCR GCSE Computer Science)
Revision Note
Written by: Robert Hampton
Reviewed by: James Woodhouse
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 |
|
Last updated:
You've read 0 of your 10 free revision notes
Unlock more, it's free!
Did this page help you?