Programming Arduino Dice Roller: Making random() more Random [3/3]

Опубликовано: 17 Июнь 2026
на канале: Wokwi
2,348
89

In this Arduino live-coding series you will learn how to program your own dice roller project! We'll write the code together, from scratch, solving interesting challenges, and I will explain every step and show you how to create clean, readable Arduino code.

Part 1:    • Programming Arduino Dice Roller from Scrat...  
Part 2:    • Programming Arduino Dice Roller: 44 ⇒ 7 Li...  
Part 3:    • Programming Arduino Dice Roller: Making ra...  

Video timeline:
00:00 Review
00:26 Adding randomness using random()
01:18 Debugging why random() isn't so random?!
02:05 Combining randomSeed() with analogRead()
04:03 Adding the push button to the code
05:52 Using the user input as source of randomness
06:15 2nd approach: combining randomSeed() with micros()
07:58 Adding the final touches
09:16 Uploading the code to the Arduino and enjoying the final result!

The complete code from this video:

https://wokwi.com/projects/3286756694...