Random | |
Macros | |
Simple aliases for most common random generators | This macros are designed to simplify the user interface for generating random numbers. |
This macros are designed to simplify the user interface for generating random numbers. Most of the time, a Marsaglia XOR-shift RNG is best choice for generating random numbers
cpct_rand8 | returns a random u8 value ( 8-bits). It uses cpct_getRandom_mxor_u8. |
cpct_rand16 | returns a random u16 value (16-bits). It uses cpct_getRandom_mxor_u16. |
cpct_rand32 | returns a random u32 value (32-bits). It uses cpct_getRandom_mxor_u32. |
cpct_srand8(SEED) | Sets seed for MXOR generators (SEED = 32 bits value) and restores internal state of cpct_getRandom_mxor_u8. |
cpct_srand16(SEED) | Sets seed for MXOR generators (SEED = 32 bits value) and restores internal state of cpct_getRandom_mxor_u16. |
cpct_rand | alias for cpct_rand8 |
cpct_srand | alias for <cpct_srand8> |