GBDK 2020 Docs
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_gbz80)
28
void
initrand(
uint16_t
seed);
29
#elif defined(__PORT_z80)
30
void
initrand(
uint16_t
seed) __z88dk_fastcall;
31
#else
32
#error Unrecognized port
33
#endif
34
39
int8_t
rand
(
void
);
40
45
uint16_t
randw
(
void
);
46
56
#if defined(__PORT_gbz80)
57
void
initarand(
uint16_t
seed);
58
#elif defined(__PORT_z80)
59
void
initarand(
uint16_t
seed) __z88dk_fastcall;
60
#else
61
#error Unrecognized port
62
#endif
63
68
int8_t
arand
(
void
);
69
70
#endif
int8_t
signed char int8_t
Definition:
stdint.h:43
randw
uint16_t randw(void)
types.h
uint16_t
unsigned short int uint16_t
Definition:
stdint.h:52
stdint.h
rand
int8_t rand(void)
arand
int8_t arand(void)