/***************************************************************** * rangen.c - An example of random number generator using * DSPLIB function rand16 in Section 5.4.5 * *****************************************************************/ #include "math.h" #include "dsplib.h" #pragma DATA_SECTION(xn, "signal_out"); ushort N=128; // length of vector DATA xn[128]; // signal buffer void main() { rand16(xn, N); // call random number generator }