What do we need: A Dice Roll
Some way to simulate a dice roll. Dice have values of 1,2,3,4,5,6.
We could generate a “random” number between 1-6.
- Could use a psuedo random sequence generator in the form of a shift register for this.
- Can be difficult to test if using psuedo random sequences
An easier way is to use a counter whose count sequence is 1,2,3,4,5,6,1,2, etc.
- Even though count sequence is NON-RANDOM, a high speed clock and a user pushing buttons to stop/start the roll will make the dice roll look random!!!