pgarandomflip(5) debian man page | unix.com

Man Page: pgarandomflip

Operating Environment: debian

Section: 5

PGARandomFlip(5)						      PGAPack							  PGARandomFlip(5)

NAME
PGARandomFlip - flip a biased coin and return PGA_TRUE if the coin is a "winner."
DESCRIPTION
Otherwise, return PGA_FALSE.
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
random.c
EXAMPLE
Example: To return PGA_TRUE approximately seventy percent of the time, use PGAContext *ctx; int p; : PGARandomFlip(ctx, 0.7) 05/01/95 PGARandomFlip(5)
Related Man Pages
pgaevaluate(1) - debian
pgadebugprint(3) - debian
pgaduplicate(8) - debian
glxquerycontext(3g) - centos
randomid(3) - netbsd
Similar Topics in the Unix Linux Community
awk or sed - Convert 2 lines to 1 line
How can I do this in VI editor?
One instance of comparing grep and awk
A (ksh) Library For and From UNIX.com
New UNIX and Linux History Sections