# GBDK 2020 Docs: rand.h Source File

rand.h
Go to the documentation of this file.
#ifndef RAND_INCLUDE
#define RAND_INCLUDE
#include <types.h>
#include <stdint.h>
#if defined(__PORT_gbz80)
void initrand(uint16_t seed) OLDCALL;
#elif defined(__PORT_z80)
void initrand(uint16_t seed) Z88DK_FASTCALL;
#endif
#define RAND_MAX 255
#define RANDW_MAX 65535
extern uint16_t __rand_seed;
uint8_t rand() OLDCALL;
uint16_t randw() OLDCALL;
#if defined(__PORT_gbz80)
void initarand(uint16_t seed) OLDCALL;
#elif defined(__PORT_z80)
void initarand(uint16_t seed) Z88DK_FASTCALL;
#endif
uint8_t arand() OLDCALL;
#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