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.

C6000系列下的随机数生成

想咨询下面的问题:

RTS (RunTime Support)库里面的srand, rand函数可以产生随机数. 具体见下面的Compiler User Guide第281页上的函数说明. http://www.ti.com/lit/ug/spru281f/spru281f.pdf..但是srand的种子怎么设定?一般推荐使用系统时间来作为随机数种子,想请问一下,TI 的DSP芯片中怎么获取"系统时间".若没有"系统时间".可以获取,那么怎么设置不同的种子来保证每次运行都生成不同的随机数序列?