How do I generate random numbers in a microcontroller efficiently?

前端 未结 8 2107
梦毁少年i
梦毁少年i 2021-02-15 18:14

How do I generate random numbers in a microcontroller efficiently? Are there any general guidelines or a particular fast method?

8条回答
  •  一个人的身影
    2021-02-15 19:00

    you can store a seed to EEPROM, and when device boots, you can increment a seed and store it again. So, every reboot youll have different random number.

提交回复
热议问题