millfork

Millfork: a middle-level programming language targeting 6502- and Z80-based microcomputers and home consoles

This project is maintained by KarolS

< back to index

err

enum error_number

Standard error codes. All codes other than err_ok suggest that the last operation failed.

error_number errno

The result of the last operation.

random

A simple and reasonably fast random number generator. Not suitable for cryptographic or simulation uses.

word rand_seed

Random number generator state.

byte rand()

Get a random byte (0–255) and update the state of the generator.

void init_rand_seed()

Initializes the random number generator state. This may take a long time, even several frames, depending on the target.

Current implementation: