jbrandwood / liberis

MIT License
7 stars 2 forks source link

Needs a pseudo-random number generator #17

Closed dshadoff closed 3 months ago

dshadoff commented 3 months ago

Virtually all games need some form of randomness; a pseudo-random number generator would be handy.

dshadoff commented 3 months ago

POSIX functions are adeuqate until something better is required.

use:

#include <stdlib.h>

void srand(int seed);
int rand();

This adds roughly 2KB to an existing program.

So, this can be closed without requiring a code resolution.