Query: pgarandomflip
OS: debian
Section: 5
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
PGARandomFlip(5) PGAPack PGARandomFlip(5)NAMEPGARandomFlip - flip a biased coin and return PGA_TRUE if the coin is a "winner."DESCRIPTIONOtherwise, return PGA_FALSE.INPUT PARAMETERSctx - context variable p - biased probability (.5 is a fair coin)OUTPUT PARAMETERSnoneSYNOPSIS#include "pgapack.h" int PGARandomFlip(ctx, p) PGAContext *ctx double pLOCATIONrandom.cEXAMPLEExample: 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 |
---|
pgasetintegerinitrange(2) - debian |
pgasetrealinitrange(2) - debian |
pgadebugprint(3) - debian |
pgacreate(8) - debian |
pgasortpop(8) - debian |
Similar Topics in the Unix Linux Community |
---|
awk or sed - Convert 2 lines to 1 line |
Introduction |
Weird 'find' results |
A (ksh) Library For and From UNIX.com |
My first PERL incarnation... Audio Oscillograph |