csnip  0.1
Classes | Typedefs | Functions
Random Number Generation

Abstract base type for random number generation. More...

Classes

struct  csnip_rng_T
 Method table for a random number generator. More...
 

Typedefs

typedef struct csnip_rng_T csnip_rng
 

Functions

unsigned long int csnip_rng_getnum (const csnip_rng *R)
 Retrieve a number from the RNG. More...
 
void csnip_rng_seed (const csnip_rng *R, int nseed, const unsigned long *seed)
 Seed the RNG. More...
 

Detailed Description

Function Documentation

◆ csnip_rng_getnum()

unsigned long int csnip_rng_getnum ( const csnip_rng R)
inline

Shorthand for R->getnum(R).

◆ csnip_rng_seed()

void csnip_rng_seed ( const csnip_rng R,
int  nseed,
const unsigned long *  seed 
)
inline

Given seeding memory, seed the RNG.