PGASetRandomSeed(3)

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.

  1. 1.1
  2. 1.2–3.1

From pgapack 1.0.0.1-3 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.