Commit b784b999 authored by salix5's avatar salix5

update class mt19937

parent 5dec848b
......@@ -12,6 +12,8 @@
class mt19937 {
public:
const unsigned int rand_max;
mt19937() :
rng(), rand_max((rng.max)()) {}
explicit mt19937(unsigned int seed) :
......@@ -62,7 +64,6 @@ public:
private:
std::mt19937 rng;
const unsigned int rand_max;
};
......
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