diff options
author | quou <quou@disroot.org> | 2024-10-02 20:14:19 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-10-02 20:14:19 +1000 |
commit | f430e6080afd75a0c0aecdb0a0223f0f3b23b993 (patch) | |
tree | 35bb37149e154708097fda34824d5858a6136812 /random.h | |
parent | 4d94823a1523db6dc218bdc0d86689616c13599d (diff) |
random
Diffstat (limited to 'random.h')
-rw-r--r-- | random.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/random.h b/random.h new file mode 100644 index 0000000..22375a1 --- /dev/null +++ b/random.h @@ -0,0 +1,13 @@ +#ifndef random_h +#define random_h + +#define random_table_count 0x100 +#define random_table_mask 0x0ff +#define random_max 65535 + +extern int random_table[random_table_count]; + +int get_r(void); +int get_rrange(int mi, int ma); + +#endif |