Graphviz 12.0.1~dev.20240716.0800
|
#include <stddef.h>
Go to the source code of this file.
Data Structures | |
struct | rk_state_ |
Macros | |
#define | RK_STATE_LEN 624 |
#define | RK_MAX 0xFFFFFFFFUL |
Typedefs | |
typedef struct rk_state_ | rk_state |
Functions | |
void | rk_seed (unsigned long seed, rk_state *state) |
unsigned long | rk_random (rk_state *state) |
unsigned long | rk_ulong (rk_state *state) |
unsigned long | rk_interval (unsigned long max, rk_state *state) |
#define RK_MAX 0xFFFFFFFFUL |
Definition at line 72 of file randomkit.h.
#define RK_STATE_LEN 624 |
Definition at line 61 of file randomkit.h.
|
extern |
Definition at line 147 of file randomkit.c.
References rk_random(), rk_ulong(), and state.
Referenced by fisheryates_shuffle().
|
extern |
Definition at line 105 of file randomkit.c.
References LOWER_MASK, M, MATRIX_A, N, RK_STATE_LEN, state, and UPPER_MASK.
Referenced by rk_interval(), and rk_ulong().
|
extern |
Definition at line 83 of file randomkit.c.
References RK_STATE_LEN, seed, and state.
Referenced by sgd().
|
extern |
Definition at line 137 of file randomkit.c.
References rk_random(), and state.
Referenced by rk_interval().