Additional Programming Techniques (OCR GCSE Computer Science): Flashcards
📚Flashcards
Practise the cards
12 cards from this deck
ShowHide
Practise the cards
12 cards from this deck
What is random number generation?
What is random number generation?
Producing unpredictable numbers within a specified range
Common uses of random numbers in programming
Common uses of random numbers in programming
Games, simulations, choosing random data from lists
Python module for generating random numbers
Python module for generating random numbers
random module
Python function to generate random integer
Python function to generate random integer
random.randint()
Range of random.randint(1, 10) in Python
Range of random.randint(1, 10) in Python
Between 1 and 10 inclusive
Python function for random float
Python function for random float
random.random()
Range of random.random() output
Range of random.random() output
Between 0.0 and 1.0
Java class for random number generation
Java class for random number generation
Random class
Pseudocode: RANDOM(1, 6) simulates what?
Pseudocode: RANDOM(1, 6) simulates what?
Rolling a dice (number between 1 and 6)
Random numbers for decision-making example
Random numbers for decision-making example
Simulating coin flip (heads or tails)
Using random numbers to create simulated data
Using random numbers to create simulated data
Generate/populate list with random values
Python function to shuffle list items randomly
Python function to shuffle list items randomly
random.shuffle()
