diff options
author | quou <quou@disroot.org> | 2024-10-11 21:43:36 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-10-11 21:43:36 +1100 |
commit | 24b72170d34cee515398f206f087bfeafc7b6b55 (patch) | |
tree | 24c2bc3d7e1c0bdac9de38dae3c5d2de7e669f25 /random.c | |
parent | 9add408984464bd6b3cc018bb14c3d69ad0a2898 (diff) |
game is pretty much done kek
Diffstat (limited to 'random.c')
-rw-r--r-- | random.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -48,6 +48,10 @@ int random_table[] = { }; static int index = 0; +void set_ri(int i) { + index = i; +} + int get_r(void) { index = (index + 1) & random_table_mask; return random_table[index]; |