---
name: "PGAGetRandomInitFlag"
section: "3"
platform: "linux"
package: "pgapack"
version: "1.0.0.1-3"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/PGAGetRandomInitFlag/3"
---

# PGAGetRandomInitFlag(3)

returns true/false to indicate whether or not alleles are randomly initialized.

## NAME

PGAGetRandomInitFlag - returns true/false to indicate whether or not alleles are randomly initialized.

## INPUT PARAMETERS

- ctx

  \- context variable

## OUTPUT PARAMETERS

- none

  ## SYNOPSIS

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

## LOCATION

create.c

## EXAMPLE

```
Example:
PGAContext *ctx;
int raninit;
:
raninit = PGAGetRandomInitFlag(ctx);
switch (raninit) {
case PGA_TRUE:
printf("Population is randomly initialized0);
break;
case PGA_FALSE:
printf("Population initialized to zero0);
break;
}
```
