Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed from November 25 through December 2. Thank you for your patience.

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.

AM2732: How to add the function of generating random numbers in the AM2732 project?

Part Number: AM2732

Tool/software:

We have a function to generate random data. I tried importing C library functions. Use the following statement in the code:

srand(time(NULL));

unsigned char num = rand() %256;

But the values generated each time are fixed.

What should I do to correctly generate random numbers?

Thanks.