0Pricing
Javascript for Kids · Lesson

Making Random Numbers

Use Math.random for surprises.

Surprise Time! 🎉

What if the computer could surprise us with a random number? 🎲

Like a magic dice that never stops! ✨

Meet Math.random() 🎰

The spell Math.random() gives a surprise number every time! 🎰

console.log(Math.random());

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