I need help in designing the logic & block diagram of the circuit which allows a user to guess a randomly generated Decimal number... If his guess is correct, the LED glows green, else it glows red. Another random number is generated ONLY when the user guesses correctly...
I have to make this using combinational and sequential circuits...
To generate a random number, it is common to send fast pulses through a counter. Then stop after a random time.
The 4017 IC would be handy for this purpose since it has ten outputs.
To let a human select a number 1 through 10, arrange 10 switches. An 'AND' gate circuit will tell if he pressed the switch which corresponds to the active line from the 4017 IC.