From 24b72170d34cee515398f206f087bfeafc7b6b55 Mon Sep 17 00:00:00 2001 From: quou Date: Fri, 11 Oct 2024 21:43:36 +1100 Subject: game is pretty much done kek --- random.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'random.c') diff --git a/random.c b/random.c index f4ddfb9..355920b 100644 --- a/random.c +++ b/random.c @@ -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]; -- cgit v1.2.3-54-g00ecf