PGASetRandomSeed(5)

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).

  1. 5.0–8

From pgapack 1.1.1-3 in Debian 8 (Jessie). Parsed by carta from the page's man source.