This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to generate random number?

Does anybody know how to generate random number using 8051?

Parents
  • "my MCU is out of code memory"

    Would simply using the time be sufficently "random" for your purpose?

    Is there some external event/signal that would give you an essentially random number?
    eg, the time a user presses some button (any button - doesn't have to be a "generate random number" button), or the instantaneous value of some analogue signal, or some unrelated count, or...

Reply
  • "my MCU is out of code memory"

    Would simply using the time be sufficently "random" for your purpose?

    Is there some external event/signal that would give you an essentially random number?
    eg, the time a user presses some button (any button - doesn't have to be a "generate random number" button), or the instantaneous value of some analogue signal, or some unrelated count, or...

Children
No data