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 /include/random.h | |
parent | fdf832bec16cbdcb07afc4a62bb74314202fadf6 (diff) |
create random.h
Diffstat (limited to 'include/random.h')
-rw-r--r-- | include/random.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/random.h b/include/random.h new file mode 100644 index 0000000..53cfdaf --- /dev/null +++ b/include/random.h @@ -0,0 +1,11 @@ +#ifndef GUARD_RANDOM_H +#define GUARD_RANDOM_H + +void SeedRng(u8 *seed); +s32 Random(void); +s32 RandomCapped(s32 cap); +s32 RandomRange(s32 a, s32 b); +s32 GetRngState(void); +void SetRngState(s32 state); + +#endif // GUARD_RANDOM_H |