54 double *second_result);
Support for process management (memory allocation, logging, etc.)
int sc_rand_small(sc_rand_state_t *state, double d)
Randomly draw either 0 or 1 where the probability for 1 is small.
double sc_rand_normal(sc_rand_state_t *state, double *second_result)
Sample the Gauss standard normal distribution.
uint64_t sc_rand_state_t
The internal state of sc_rand and derived functions.
Definition: sc_random.h:36
double sc_rand(sc_rand_state_t *state)
Draw a (pseudo-)random variable uniformly distributed in [0, 1).
int sc_rand_poisson(sc_rand_state_t *state, double mean)
Draw from a random variable following the Poisson distribution.