# cpct_mxor32_seed

> _cpct_mxor32_seed:: .dw #0x1A7B, #0x59F2

Contains the 32-bits seed for Marsaglia’s XOR-shift random number generator.

#### C Definition

u32 cpct_mxor32_seed;

#### Known limitations

- This seed should never be set to 0. Functions that use this seed will always return 0 if this seed is set to 0.
- You may assing a value to this seed direcly from C or ASM. If directly accessed from ASM, do not forget to put an underscore in front (_cpct_mxor32_seed).

#### Used by

This seed variable is used by these functions,

- cpct_getRandom_mxor_u32
- cpct_getRandom_mxor_u16
- cpct_getRandom_mxor_u8

unsigned long (u32 = unsigned 32-bits, 4 bytes)

> _cpct_mxor32_seed:: .dw #0x1A7B, #0x59F2

Contains the 32-bits seed for Marsaglia’s XOR-shift random number generator.
Gets a 32-bit pseudo-random number using Marsaglia’s XOR-shift algorithm (using a 32-bits state)
Gets a high-quality 16-bit pseudo-random number using Marsaglia’s XOR-shift algorithm (using a 32-bits state)
Gets a high-quality 8-bit pseudo-random number using Marsaglia’s XOR-shift algorithm (Using a 32-bits state)
Close