Python Random Values

This lesson teaches pupils about generating and using random values including floating point, integers and strings in Python. It is suitable for KS3 computing and GCSE 9-1 computer science pupils.

It includes an attractive dyslexia friendly PowerPoint presentation that includes differentiated lesson objectives, a video to teach key skills and lots ofpractical programming practice. It also includes a comprehensive teacher’s lesson plan including all the answers.

Please note: This lesson does assume the pupils are familiar with basic programming constructs of sequence, selection (if statements) and iteration (while and for loops).

Duration: 1 lesson

This lesson teaches pupils about:

  • Importing the random module
  • random.random()
  • random.randint()
  • random.randrange()
  • random.choice()
Save for later
  • Terms-of-Use.pdf

About this resource


Created: Jul 5, 2019

Whole lesson

zip, 121 MB



pdf, 52 KB


Report a problem

Tes Paid Licence

How can I re-use this?