PGARandom013
Generates a uniform random number on the interval [0,1) if the second argument is 0 it returns the next random number in the sequence. otherwise, the second argument is used as a new seed for the population
Usage
#include "pgapack.h" double PGARandom01(ctx, newseed) PGAContext *ctx int newseed
Input parameters
- ctx
-
- context variable
- newseed
-
- either 0 to get the next random number, or nonzero to reseed Outputs: A random number on the interval [0,1)
Output parameters
- none
Location
random.c
Examples
PGAContext *ctx; double r; : r = PGARandom01(ctx,0);
Releases
8 releases since Debian 1.1 (Buzz); the text changed 1 time.