How do I generate random numbers in a microcontroller efficiently?

前端 未结 8 2056
梦毁少年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:01

    You can generate pseudorandom numbers by manipulation of bits by simulating a LINEAR FEEDBACK SHIFT REGISTER

    The question then becomes 'how many bits do you want to simulate?'

    Wikipedia has some information.

提交回复
热议问题