top of page

PROGRAMMING CHALLENGES

Random Element Generator

Difficulty:

1 Easy

1.3 Arithmetic and Random

Topic:

Write a program that generates a random number representing a dice roll with a user-specified number of sides.

Use the random.randint() function to generate a random number within the specified range.

Need help with your programming skills?

If you need more help than just independent practise, then we're here for you. Book a 1:1 with us and we will be able to guide you to becoming a proficient programmer who can tackle any of the challenges an exam board can throw at you.

bottom of page