22 const unsigned long*
seed);
45 const unsigned long*
seed)
54 #if defined(CSNIP_SHORT_NAMES) && !defined(CSNIP_RNG_HAVE_SHORT_NAMES)
56 #define rng_getnum csnip_rng_getnum
57 #define rng_seed csnip_rng_seed
58 #define CSNIP_RNG_HAVE_SHORT_NAMES
unsigned long int csnip_rng_getnum(const csnip_rng *R)
Retrieve a number from the RNG.
Definition: rng.h:34
void csnip_rng_seed(const csnip_rng *R, int nseed, const unsigned long *seed)
Seed the RNG.
Definition: rng.h:43
Method table for a random number generator.
Definition: rng.h:12
unsigned long maxval
Maximum value returned by RNG, inclusive.
Definition: rng.h:14
void(* seed)(const struct csnip_rng_T *rng, int nseed, const unsigned long *seed)
Seed the RNG with the given seed memory.
Definition: rng.h:20
unsigned long int(* getnum)(const struct csnip_rng_T *rng)
Retrieve the next random number and update state.
Definition: rng.h:24
unsigned long minval
Minimum value returned by RNG, inclusive.
Definition: rng.h:13
void * state
The random number generator state.
Definition: rng.h:16