??? 08/25/08 09:40 Read: times |
#157727 - One Suggestion for generating 1 to 6 Responding to: ???'s previous message |
Dear Alan,
To generate a random number on key press, the method I would follow is to run a counter in a timer isr with required % of combinations(in your case 6 equi-probable combinations). Only taking a snap of counter after sensing key. Same is the method used for merry-game I had designed(9 combination with very different required probability of each, with 4 sets of probabilities for 4 different settings). Regards, Mahesh |