...
lib_math.h/lib_math.c
Prototype
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
RAND_NBR Math_RandSeed (RAND_NBR seed);
|
Arguments
seed
Initial (or current) value to set for the pseudo-random number sequence.
...
Math_RandSeed()
is re-entrant since it calculates the next random number using only local variables.
Example Usage
Code Block | ||
---|---|---|
Language | C++ | CaptionText | CAPTION
| ||
RAND_NBR seed; RAND_NBR rand_nbr; seed = 9876; rand_nbr = Math_RandSeed(seed); |