5.3.58 _Q16random Function
This function generates a pseudo random number with a period of 2147483648.
The function uses the _Q16randomSeed
variable as a random seed
value.
Include
<libq.h>
Prototype
_Q16 _Q16random(void);
Argument
None.
Return Value
This function returns a random number in Q16 format. The value ranges from -2147483648 to 2147483647.
Remarks
RndNum(n) = (RndNum(n-1) * RAN_MULT) + RAN_INC
SEED VALUE = 21845
RAN_MULT = 1664525
RAN_INC = 1013904223