#ifndef GENESIS_GEN_RNG_H
#define GENESIS_GEN_RNG_H

#include <stdint.h>

typedef struct {
    uint64_t state;
    uint64_t inc;
} rng_t;

void rng_seed(rng_t *r, uint64_t seed);
uint32_t rng_u32(rng_t *r);
int rng_range(rng_t *r, int lo, int hi);
int rng_percent(rng_t *r, int pct);

#endif
