Files
batomorph/include/rng.h
2025-09-23 15:35:26 +01:00

17 lines
232 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);
vec3_t rng_vec3(rng_t *rng);
vec3_t rng_gaussian_xy(rng_t *rng, double stddev);
#endif