_Q15random Function

This function generates a random number in the range from -32768 to 32767. The random number generation is periodic with period 65536. The function uses the _Q15randomSeed variable as a random seed value.

Include

<libq.h>

Prototype

_Q15 _Q15random(void);

Argument

None.

Return Value

This function returns a random number in Q15 format. The value ranges from -32768 to 32767.