Files
batomorph/include/rng.h
Camden Dixie O'Brien 1ee0571178 Randomise scene
2025-09-22 22:01:13 +01:00

20 lines
324 B
C

#ifndef RNG_H
#define RNG_H
#include "vec3.h"
#include <stdint.h>
typedef struct {
uint32_t state;
} rng_t;
rng_t rng_init(unsigned seed);
uint32_t rng_uint32(rng_t *rng);
double rng_canon(rng_t *rng);
double rng_disc(rng_t *rng);
vec3_t rng_vec3(rng_t *rng);
vec3_t rng_gaussian_xy(rng_t *rng, double stddev);
#endif