PGARandomInterval5
Returns a uniform random number on the specified interval
Usage
#include "pgapack.h" int PGARandomInterval(ctx, start, end) PGAContext *ctx int start int end
Input parameters
ctx
|
- context variable |
|---|---|
start
|
- starting (integer) value of the interval |
end
|
- ending (integer) value of the interval |
Output parameters
- none
Location
random.c
Examples
Example: Generate a value uniformly random from the interval [0,99] PGAContext *ctx; : PGARandomInterval(ctx, 0, 99);
Releases
Unchanged in 4 releases since Debian 5.0 (Lenny).