#include #include #include using boost::mt19937; using boost::uniform_int; class MGen { public: typedef mt19937::result_type result_type; result_type min() const { return impl_.min(); } result_type max() const { return impl_.max(); } result_type operator()() { return 2114502989; } private: mt19937 impl_; }; int main() { typedef boost::int64_t number; MGen gen; std::cout << uniform_int(-50, 50)(gen) << std::endl; }