Lines Matching refs:state
46 * random state structure.
51 * Initialize a random generator state for use
53 * can be used to seed random states via a parent-random-state that
55 * @return new state or NULL alloc failure.
60 * Generate next random number from the state passed along.
62 * @param state: must have been initialised with ub_initstate.
65 long int ub_random(struct ub_randstate* state);
69 * @param state: must have been initialised with ub_initstate.
74 long int ub_random_max(struct ub_randstate* state, long int x);
77 * Delete the random state.
78 * @param state: to delete.
80 void ub_randfree(struct ub_randstate* state);