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
- Making Random Numbers
- Rolling a Dice
- Picking a Random Item
- A Lucky Number Game