---
name: "PGAGetRandomSeed"
section: "5"
platform: "linux"
package: "pgapack"
version: "1.1.1-3"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/PGAGetRandomSeed/5"
---

# PGAGetRandomSeed(5)

returns the integer to seed random numbers with

## NAME

PGAGetRandomSeed - returns the integer to seed random numbers with

## INPUT PARAMETERS

- ctx

  \- context variable

## OUTPUT PARAMETERS

- none

  ## SYNOPSIS

```
#include "pgapack.h"
int  PGAGetRandomSeed(ctx)
PGAContext *ctx
```

## LOCATION

random.c

## EXAMPLE

```
Example:
PGAContext *ctx;
int seed;
:
seed = PGAGetRandomSeed(ctx);
```
