Random Number Generation (AQA GCSE Computer Science): Quizzes

📚Quizzes
Random Number Generation
Sign up to keep practising.Create a free account to play more quizzes and track your progress.

Practise the questions

12 questions from this quiz

Show

What do built-in random number functions create in programming?

Unpredictable values

Which area commonly uses random number generation?

Game development

How many parameters does RANDOM_INT require?

Two parameters

In RANDOM_INT(x, y), which parameter comes first?

Lowest number

What does 'range' mean in random number generation?

The smallest and largest numbers

What is the AQA pseudocode subroutine for random numbers?

RANDOM_INT

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?

x ← RANDOM_INT(5, 15)

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?

OUTPUT RANDOM_INT(20, 50)

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?

The core concept

Join 100,000+ GCSE students studying Quizzes with us.

Select your subjects, and get access to A+ resources today.