GBDK 2020 Docs  4.0.6
API Documentation for GBDK 2020
rand.h
Go to the documentation of this file.
1 
6 #ifndef RAND_INCLUDE
7 #define RAND_INCLUDE
8 
9 #include <types.h>
10 #include <stdint.h>
11 
28 #if defined(__PORT_gbz80)
30 #elif defined(__PORT_z80)
32 #endif
33 
34 #define RAND_MAX 255
35 #define RANDW_MAX 65535
36 
48 extern uint16_t __rand_seed;
49 
55 
61 
71 #if defined(__PORT_gbz80)
73 #elif defined(__PORT_z80)
75 #endif
76 
82 
83 #endif
uint8_t
unsigned char uint8_t
Definition: stdint.h:51
types.h
uint16_t
unsigned short int uint16_t
Definition: stdint.h:52
randw
uint16_t randw() OLDCALL
__rand_seed
uint16_t __rand_seed
arand
uint8_t arand() OLDCALL
initrand
void initrand(uint16_t seed) OLDCALL
stdint.h
OLDCALL
#define OLDCALL
Definition: types.h:19
Z88DK_FASTCALL
#define Z88DK_FASTCALL
Definition: types.h:43
initarand
void initarand(uint16_t seed) OLDCALL
rand
uint8_t rand() OLDCALL