Function PGASetRandomSeed
Defined in File random.c
Function Documentation
-
void PGASetRandomSeed(PGAContext *ctx, int seed)
Set a seed for the random number generator.
Description
The default is to initialize the seed randomly (from the time). Specifying a seed explicitly allows for reproducibility of runs.
Example
PGAContext *ctx; ... PGASetRandomSeed (ctx, 1);
- Parameters:
ctx – context variable
seed – seed for the random number generator
- Returns:
None