Ubuntu Manpages

PGARandomInterval

returns a uniform random number on the specified interval

- context variable
- starting (integer) value of the interval
- ending (integer) value of the interval

#include "pgapack.h"
int  PGARandomInterval(ctx, start, end)
PGAContext *ctx
int start
int end

random.c

Example:
Generate a value uniformly random from the interval [0,99]
PGAContext *ctx;
:
PGARandomInterval(ctx, 0, 99);