PGARandomFlip(5)

NAME
PGARandomFlip - flip's a biased coin and returns PGATRUE if the coin is a "winner." Otherwise, returns PGAFALSE.

INPUT PARAMETERS
ctx - context variable
p   - biased probability (.5 is a fair coin)

OUTPUT PARAMETERS
none

SYNOPSIS
#include "pgapack.h"
int  PGARandomFlip(ctx, p)
PGAContext *ctx
double p

LOCATION
system.c

EXAMPLE
Example:
To return PGATRUE approximately seventy percent of the time, use
PGAContext *ctx;
int p;
:
PGARandomFlip(ctx, 0.7)