GBDK 2020 Docs  4.1.1
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_sm83) || defined(__PORT_mos6502)
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_sm83) || defined(__PORT_mos6502)
73 #elif defined(__PORT_z80)
75 #endif
76 
82 
83 #endif
#define OLDCALL
Definition: types.h:21
#define Z88DK_FASTCALL
Definition: types.h:46
uint8_t rand() OLDCALL
void initarand(uint16_t seed) OLDCALL
uint8_t arand() OLDCALL
uint16_t __rand_seed
void initrand(uint16_t seed) OLDCALL
uint16_t randw() OLDCALL
unsigned char uint8_t
Definition: stdint.h:51
unsigned short int uint16_t
Definition: stdint.h:52