diff options
author | sceptillion <33798691+sceptillion@users.noreply.github.com> | 2017-12-11 00:56:09 -0800 |
---|---|---|
committer | sceptillion <33798691+sceptillion@users.noreply.github.com> | 2017-12-11 00:56:09 -0800 |
commit | 66219cd4afaa5bca25fa722b9194b5c55341a0f6 (patch) | |
tree | ddee139e313dedfe675c8f86126f177192981eaa /src/random.c | |
parent | fdf832bec16cbdcb07afc4a62bb74314202fadf6 (diff) |
create random.h
Diffstat (limited to 'src/random.c')
-rw-r--r-- | src/random.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/random.c b/src/random.c index 5db7394..cfc976c 100644 --- a/src/random.c +++ b/src/random.c @@ -1,4 +1,5 @@ #include "global.h" +#include "random.h" extern s32 gRngState; @@ -26,6 +27,7 @@ s32 RandomCapped(s32 cap) return (((Random() & 0xFFFF) * cap) >> 16) & 0xFFFF; } +// Returns a random number between a and b. s32 RandomRange(s32 a, s32 b) { if (a == b) |