16 lines
233 B
C
16 lines
233 B
C
#pragma once
|
|
#include <stdint.h>
|
|
|
|
typedef struct rng {
|
|
int64_t seed;
|
|
} rng;
|
|
|
|
rng *get_rng(int64_t seed);
|
|
|
|
void free_rng(rng* rng);
|
|
|
|
float rng_uniform(rng *rng, float a, float b);
|
|
|
|
float rng_gaussian(rng *rng, float m, float s);
|
|
|