17 lines
299 B
C
Raw Normal View History

2024-12-01 12:10:19 +00:00
#include <random>
#pragma once
class GaussianRNG {
private:
unsigned seed;
std::default_random_engine generator;
std::normal_distribution<float> distribution;
public:
GaussianRNG(float mean, float std_dev, unsigned seed);
GaussianRNG(float mean, float std_dev);
float generate();
};