#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 0x5D588B656C078965
0x269EC3
0x5D588B65
0x269EC3
MATHRandContext*
structure.
12/13/2004 Initial version.