Go to the source code of this file.
◆ trc_random_int()
| int trc_random_int |
( |
int |
min, |
|
|
int |
max |
|
) |
| |
Returns a random integer between the given range (both values included)
- Parameters
-
| min | The minimum value for the random range |
| max | The upper limit of the random range |
◆ trc_set_RNG_random_seed()
| void trc_set_RNG_random_seed |
( |
void |
| ) |
|
◆ trc_set_RNG_seed()
| void trc_set_RNG_seed |
( |
int |
seed | ) |
|
Sets the seed for the Random Number Generator to the given seed, use this instead of trc_set_RNG_random_seed if you want control over what seed is being used (useful for testing and replicate states)
- Note
- Run only ONCE at the start of the program