Clean up frand usages
This commit is contained in:
parent
fa1cdf24db
commit
6859839770
14 changed files with 79 additions and 67 deletions
|
|
@ -3,6 +3,12 @@
|
|||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#define frandBool() (((s32)frand() & 0x1))
|
||||
#define frand8() (((s32)frand() & 0xFF))
|
||||
#define frandmods(range) ((s32)frand() % (range))
|
||||
#define frand16() (((s32)frand() & 0xFFFF))
|
||||
#define frandmod31(range) (((s32)frand() & 0x7FFFFFFF) % (range))
|
||||
|
||||
u32 frand(void);
|
||||
f32 frandf(void);
|
||||
u32 frandmod(u32 arg0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue