csnip  0.1
Public Attributes | List of all members
csnip_rng_T Struct Reference

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

#include <rng.h>

Public Attributes

unsigned long minval
 Minimum value returned by RNG, inclusive.
 
unsigned long maxval
 Maximum value returned by RNG, inclusive.
 
void * state
 The random number generator state. More...
 
void(* seed )(const struct csnip_rng_T *rng, int nseed, const unsigned long *seed)
 Seed the RNG with the given seed memory.
 
unsigned long int(* getnum )(const struct csnip_rng_T *rng)
 Retrieve the next random number and update state.
 

Detailed Description


Member Data Documentation

◆ state

void* csnip_rng_T::state

Size and content dependent on the RNG in use.


The documentation for this struct was generated from the following file: