DEV Community

Cover image for Digital Dice using Python
Dhanush N
Dhanush N

Posted on • Edited on

2 1

Digital Dice using Python

All I wanted was to create a dice to generate random numbers from 1 to 6 using any possible simplest programming language. And I also wanted it to be displayed digitally each time when we roll the dice.

So I used python to generate random numbers from 1 to 6. And display image based on the random digit output. The dice will be rolled & the output will be displayed each time when you click on the dice.

A simple solution for my Digital Dice 🙂

Alt Text

Here's the code below for reference
https://github.com/dhanushnehru/100DaysOfCode

Top comments (0)

👋 Kindness is contagious

Value this insightful article and join the thriving DEV Community. Developers of every skill level are encouraged to contribute and expand our collective knowledge.

A simple “thank you” can uplift someone’s spirits. Leave your appreciation in the comments!

On DEV, exchanging expertise lightens our path and reinforces our bonds. Enjoyed the read? A quick note of thanks to the author means a lot.

Okay