blob: d1acaa865e4e7189981c36a9f9617f2bfad22a89 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#ifndef SAMPLER_RANDOM_H
#define SAMPLER_RANDOM_H
#include "sampler.hpp"
#include <core/random.hpp>
class RandomSampler : public Sampler {
public:
RandomSampler(long samples, int seed = 0);
double getSample();
Vec2d get2dSample();
private:
Random m_rng;
};
#endif
|