68# define ALEPH_RAN_ARRAY_DEPRECATED \
69 [[deprecated("ran_array.h goes in 8.0.0; use the engines of <random> instead")]]
72# define ALEPH_RAN_ARRAY_DEPRECATED
99#define ran_arr_next() (*ran_arr_ptr >=0 ? *ran_arr_ptr++ : ran_arr_cycle())
105# undef ALEPH_RAN_ARRAY_DEPRECATED
#define ALEPH_RAN_ARRAY_DEPRECATED
void ran_start(long seed)
Starts the generator with seed: do this before using it.
long ran_arr_cycle(void)
Makes a new batch of numbers and returns its first one: ran_arr_next() calls it when the batch runs o...
long * ran_arr_ptr
Points to the next number of the batch, or to -1 when the batch has run out.