i m trying to make a dice!! displaying the numbers in LCD and the dice with the help of 7 lEDs in MIDE-51 with C programming codes. I can't create a random no. How to generate a random no. in C language.
i used rand() but it gave only one fixed no.
plz help
How to generate a random no. in C language.
I guess you have a button "roll the die" have a timer free running and when the button is pressed read it. That will be random
Erik