4 #define tw_opi 6.28318530718
5 #define tw_rand_unif(G) rng_gen_val(G)
6 #define tw_rand_reverse_unif(G) rng_gen_reverse_val(G)
double tw_rand_gamma(tw_rng_stream *g, double shape, double scale)
double tw_rand_pareto(tw_rng_stream *g, double scale, double shape)
double tw_rand_exponential(tw_rng_stream *g, double Lambda)
long tw_rand_integer(tw_rng_stream *g, long low, long high)
long tw_rand_poisson(tw_rng_stream *g, double Lambda)
double tw_rand_normal_sd(tw_rng_stream *g, double Mu, double Sd, unsigned int *rng_calls)
double tw_rand_normal01(tw_rng_stream *g, unsigned int *rng_calls)
long tw_rand_geometric(tw_rng_stream *g, double P)
unsigned long tw_rand_ulong(tw_rng_stream *g, unsigned long low, unsigned long high)
double tw_rand_weibull(tw_rng_stream *g, double mean, double shape)
long tw_rand_binomial(tw_rng_stream *g, long N, double P)
void tw_rand_initial_seed(tw_rng_stream *g, tw_lpid id)
tw_rng * tw_rand_init(uint32_t v, uint32_t w)