Rolling One Die
Random 1 to 6.
Roll the Dice! 🎲
Let's make the computer roll a dice for us! 🎲 Every roll is a surprise — just like a real game.
Meet random 🎰
Python has a helper called random for surprises. We bring it in with import.
import random
print('random is ready! 🎲')All lessons in this course
- Rolling One Die
- Rolling Two Dice
- Tracking Dice Points
- First to Twenty