Pseudo-random number generator for C89, based off raylib's rprand.h.
void prand_init(prand_t* prand, uint64_t seed);
uint32_t prand_rand(prand_t* prand);
int prand_int(prand_t* prand, int min, int max);
uint32_t prand_uint32(prand_t* prand, uint32_t min, uint32_t max);
unsigned int prand_uint(prand_t* prand, unsigned int min, unsigned int max);
float prand_float(prand_t* prand, float min, float max);
#define PRAND_IMPLEMENTATION
#include "../prand.h"
#include <stdio.h>
int main() {
prand_t prand;
prand_init(&prand, 0);
int result = prand_int(&prand, -100, 200);
printf("Random: %d\n", result);
return 0;
}