Query: pgarandominterval
OS: debian
Section: 5
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
PGARandomInterval(5) PGAPack PGARandomInterval(5)NAMEPGARandomInterval - returns a uniform random number on the specified intervalINPUT PARAMETERSctx - context variable start - starting (integer) value of the interval end - ending (integer) value of the intervalOUTPUT PARAMETERSnoneSYNOPSIS#include "pgapack.h" int PGARandomInterval(ctx, start, end) PGAContext *ctx int start int endLOCATIONrandom.cEXAMPLEExample: Generate a value uniformly random from the interval [0,99] PGAContext *ctx; : PGARandomInterval(ctx, 0, 99); 05/01/95 PGARandomInterval(5)