0Pricing
Javascript for Kids · Lesson

Rolling a Dice

Create a dice that gives 1 to 6.

Roll the Dice! 🎲

Let us make a REAL dice that rolls 1 to 6! 🎲

Perfect for board games! 🎮

The Decimal Problem 🤔

Math.random() gives messy decimals like 0.73. 😅

A dice needs whole numbers! We need a cleanup spell. 🧹

All lessons in this course

  1. Making Random Numbers
  2. Rolling a Dice
  3. Picking a Random Item
  4. A Lucky Number Game
← Back to Javascript for Kids