GBDK 2020 Docs  4.3.0
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 
27 #if defined(__PORT_sm83) || defined(__PORT_mos6502)
29 #elif defined(__PORT_z80)
31 #endif
32 
33 #define RAND_MAX 255
34 #define RANDW_MAX 65535
35 
47 extern uint16_t __rand_seed;
48 
54 
60 
70 #if defined(__PORT_sm83) || defined(__PORT_mos6502)
72 #elif defined(__PORT_z80)
74 #endif
75 
81 
82 #endif
#define OLDCALL
Definition: types.h:21
#define Z88DK_FASTCALL
Definition: types.h:47
void initarand(uint16_t seed) OLDCALL
uint16_t randw(void) OLDCALL
uint16_t __rand_seed
void initrand(uint16_t seed) OLDCALL
uint8_t rand(void) OLDCALL
uint8_t arand(void) OLDCALL
unsigned char uint8_t
Definition: stdint.h:51
unsigned short int uint16_t
Definition: stdint.h:52