thomasscms
Newbie level 1
- Joined
- Jul 21, 2013
- Messages
- 1
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 6
hi
for a project, i have to generate a random number between 0 and 9, and display it on seven segment display using pic16f877a. i tried using
rn = rand()%10;
but only 0x0008 is coming out..
can sm1 suggest a solution?
for a project, i have to generate a random number between 0 and 9, and display it on seven segment display using pic16f877a. i tried using
rn = rand()%10;
but only 0x0008 is coming out..
can sm1 suggest a solution?