PGASetRandomSeed5
Set a seed for the random number generator.
Usage
#include "pgapack.h" void PGASetRandomSeed(ctx, seed) PGAContext *ctx int seed
Overview
The default is to use a random seed. Specifying a seed exlicitly allows for reproducibility of runs.
Input parameters
ctx
|
- context variable |
|---|---|
seed
|
- seed for the random number generator |
Output parameters
- none
Location
random.c
Examples
Example: PGAContext *ctx; : PGASetRandomSeed(ctx,1);
Releases
Unchanged in 4 releases since Debian 5.0 (Lenny).