PGASetRandomSeed3
Set a seed for the random number generator. the default is to use a random seed. specifying a seed exlicitly allows for reproducibility of runs.
Usage
#include "pgapack.h" void PGASetRandomSeed(ctx, seed) PGAContext *ctx int seed
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
8 releases since Debian 1.1 (Buzz); the text changed 1 time.