Random Number Generation (AQA GCSE Computer Science): Quizzes
📚Quizzes
Practise the questions
12 questions from this quiz
ShowHide
Practise the questions
12 questions from this quiz
What do built-in random number functions create in programming?
What do built-in random number functions create in programming?
Unpredictable values
Which area commonly uses random number generation?
Which area commonly uses random number generation?
Game development
How many parameters does RANDOM_INT require?
How many parameters does RANDOM_INT require?
Two parameters
In RANDOM_INT(x, y), which parameter comes first?
In RANDOM_INT(x, y), which parameter comes first?
Lowest number
What does 'range' mean in random number generation?
What does 'range' mean in random number generation?
The smallest and largest numbers
What is the AQA pseudocode subroutine for random numbers?
What is the AQA pseudocode subroutine for random numbers?
RANDOM_INT
Which syntax correctly generates a random number between 1 and 10?
Which syntax correctly generates a random number between 1 and 10?
RANDOM_INT(1, 10)
How do you store a random number between 5 and 15 in variable x?
How do you store a random number between 5 and 15 in variable x?
x ← RANDOM_INT(5, 15)
When should you store a random number in a variable?
When should you store a random number in a variable?
When using it multiple times
Which outputs a random number between 20 and 50 directly?
Which outputs a random number between 20 and 50 directly?
OUTPUT RANDOM_INT(20, 50)
Are the limit values included in RANDOM_INT results?
Are the limit values included in RANDOM_INT results?
Yes, both limits are usually included
What stays the same across Python, VB.Net, and C# for random numbers?
What stays the same across Python, VB.Net, and C# for random numbers?
The core concept
