Sync pokemon jump documentation
This commit is contained in:
+2
-1
@@ -1,4 +1,5 @@
|
||||
#include "global.h"
|
||||
#include "random.h"
|
||||
|
||||
// The number 1103515245 comes from the example implementation
|
||||
// of rand and srand in the ISO C standard.
|
||||
@@ -7,7 +8,7 @@ u32 gRngValue;
|
||||
|
||||
u16 Random(void)
|
||||
{
|
||||
gRngValue = 1103515245 * gRngValue + 24691;
|
||||
gRngValue = ISO_RANDOMIZE1(gRngValue);
|
||||
return gRngValue >> 16;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user