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

# PGASetRandomInitFlag(3)

A boolean flag to indicate whether to randomly initialize alleles. Legal values are PGA\_TRUE and PGA\_FALSE. Default is PGA\_TRUE -- randomly initialize alleles.

## NAME

PGASetRandomInitFlag - A boolean flag to indicate whether to randomly initialize alleles.  Legal values are PGA\_TRUE and PGA\_FALSE.  Default is PGA\_TRUE -- randomly initialize alleles.

## INPUT PARAMETERS

- ctx

  \- context variable

- flag

  \- either PGA\_TRUE or PGA\_FALSE

## OUTPUT PARAMETERS

- none

  ## SYNOPSIS

```
#include "pgapack.h"
void  PGASetRandomInitFlag(ctx, RandomBoolean)
PGAContext *ctx
int RandomBoolean
```

## LOCATION

create.c

## EXAMPLE

```
Example:
Set the initialization routine to initialize all alleles to zero
PGAContext *ctx;
:
PGASetRandomInitFlag(ctx,PGA_FALSE);
```
