#include <nitro/math/rand.h>
static inline void MATH_InitRand32( MATHRandContext32 *context, u64 seed );
static inline void MATH_InitRand16( MATHRandContext16 *context, u32 seed );
context |
Pointer to the random-number context being initialized. |
| seed | The Seed value for initialization. |
None.
This function initializes the context of a random number generated using the linear congruential method. For a 32-bit random number, initialization is done using a multiplier of 0x5D588B656C0789650x269EC30x5D588B650x269EC3MATHRandContext* structure.
12/13/2004 Initial version.
CONFIDENTIAL