This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
The on page 52 of the "MSP MCU FRAM Utilities" user guide is a description about using [what I think is called] the RNG API for generating a random number. However, I find the explanation too vague to understand.
Be aware that there is no document number for that user guide.
Keith: ya, I tried that one, but ironically, it just returns the same number. Even when the MCU is restarted!
It certainly will return the same *series* of numbers, that is a feature of a pseudo random number.
Silly me, I neglected to use a seed for the rand() function, but I hope somebody will eventually answer my original questions.
Which CPU are you on? I think this might only apply to those with TRNG's, because of the seed issue.
In the Introduction section of the MSP MCU FRAM Utilities user's guide, there's a link to the Random Number Generation Using MSP430FR59xx and MSP430FR69xx Microcontrollers app note. That may help answer your questions.
I read the app note. It is very interesting, but it is all theoretical. And the FRAM Utility user's is far too vague about the matter. An actual simple example is needed in that document.
Unfortunately, I have to put this matter away for later. Thank you for your help.
If somebody is able to answer the four questions at the beginning of this thread, I would be grateful.
P.S. FR6989 is the processor on which the code would be run.
**Attention** This is a public forum