Introduction: TinyDice LED Die (Arduino Compatible)
I used an ATtiny25 to control some LEDs, it generates a number randomly and displays it as a die.
It first displays light sequence, then the random number and it finally goes to sleep, consuming less than 0.1uA untill someone presses the button and wakes it up to start again, battery will last about 250 YEARS when asleep.
The code is fully compatible with arduino and written on the Arduino IDE, for further info on how to program the ATtiny using the arduino ide visit This Guide.
The code can be downloaded here.