Commit 3cc738ac authored by Lukas Weber's avatar Lukas Weber

make random01 inline

parent bf6aab90
...@@ -8,10 +8,6 @@ mc::mc(const parser &p) : param{p} { ...@@ -8,10 +8,6 @@ mc::mc(const parser &p) : param{p} {
void mc::write_output(const std::string &) {} void mc::write_output(const std::string &) {}
double mc::random01() {
return rng->random_double();
}
int mc::sweep() const { int mc::sweep() const {
return sweep_; return sweep_;
} }
......
...@@ -40,10 +40,13 @@ protected: ...@@ -40,10 +40,13 @@ protected:
return 1; return 1;
} }
double random01() {
return rng->random_double();
}
public: public:
bool pt_mode_{}; bool pt_mode_{};
double random01();
int sweep() const; int sweep() const;
virtual void register_evalables(std::vector<evalable> &evalables) = 0; virtual void register_evalables(std::vector<evalable> &evalables) = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment