rename rng.c to random.c and rom4.c to overworld.c

This commit is contained in:
camthesaxman committed 2017-12-05 12:27:33 -06:00
1 parent fd75493bc6
commit 00896cb3b5
38 files changed
+65 -65

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
#ifndef GUARD_RANDOM_H
#define GUARD_RANDOM_H
extern u32 gRngValue;
extern u32 gRng2Value;
//Returns a 16-bit pseudorandom number
u16 Random(void);
u16 Random2(void);
//Returns a 32-bit pseudorandom number
#define Random32() (Random() | (Random() << 16))
//Sets the initial seed value of the pseudorandom number generator
void SeedRng(u16 seed);
void SeedRng2(u16 seed);
#endif // GUARD_RANDOM_H