Lesson 12 · Chance

Programming basics · 4 min · See the playlist on YouTube ↗

✓ You already watched this lesson

With the same data, a program always gave the same result. The Random block breaks that rule: it pulls a number no one knows in advance, and with it you build a die.

🎯 The challenge of this lesson

Turn your die into a twenty-sided one, and add a second die to roll both at the same time.

Practise in the app

Stuck on this lesson?

Write your question and another student — or the teacher — will answer. Your email is never published: it is only used to let you know when someone replies.

Before being published, every message goes through an automatic filter that rejects bad language and any attempt to intimidate another person.

  • Loading the questions…