summaryrefslogtreecommitdiff
path: root/include/random.h
diff options
context:
space:
mode:
authorfieldy101 <fieldy101@gmail.com>2020-04-22 22:29:35 +1000
committerfieldy101 <fieldy101@gmail.com>2020-04-22 23:30:44 +1000
commit9634b58d7ae9acb42c1cad41553a1806879d47cf (patch)
treeb476adc421013dc2ed420db9345aadac1e854a4e /include/random.h
parentcdc705f7e36436924b4ce5f7815983a862c52873 (diff)
Port emerald water functions into firered
Diffstat (limited to 'include/random.h')
-rw-r--r--include/random.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/random.h b/include/random.h
index 139316f9d..1eaff3245 100644
--- a/include/random.h
+++ b/include/random.h
@@ -13,6 +13,8 @@ u16 Random2(void);
//Returns a 32-bit pseudorandom number
#define Random32() (Random() | (Random() << 16))
+#define ISO_RANDOMIZE2(val)(1103515245 * (val) + 12345)
+
//Sets the initial seed value of the pseudorandom number generator
void SeedRng(u16 seed);
void SeedRng2(u16 seed);