blob: e74267ac776d126e7cbbfb43028b3f8b34192a33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#ifndef UR_RANDOM_H
#define UR_RANDOM_H
#include <random>
namespace ur {
class Random
{
public:
Random(int min, int max);
int next();
private:
int min;
int max;
std::default_random_engine engine;
std::normal_distribution<float> distribution;
};
}
#endif
|