mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-18 04:27:38 +01:00
19 lines
392 B
C
19 lines
392 B
C
|
#ifndef GUARD_RNG_H
|
||
|
#define GUARD_RNG_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_RNG_H
|