Changeset View
Changeset View
Standalone View
Standalone View
EvtGenBase/EvtMTRandomEngine.hh
Show All 26 Lines | |||||
class EvtMTRandomEngine : public EvtRandomEngine { | class EvtMTRandomEngine : public EvtRandomEngine { | ||||
public: | public: | ||||
EvtMTRandomEngine( unsigned int seed = 1430957218 ); | EvtMTRandomEngine( unsigned int seed = 1430957218 ); | ||||
virtual double random(); | virtual double random(); | ||||
private: | private: | ||||
std::mt19937 engine_; | std::mt19937 m_engine; | ||||
typedef std::uniform_real_distribution<double> URDist; | typedef std::uniform_real_distribution<double> URDist; | ||||
URDist distribution_; | URDist m_distribution; | ||||
}; | }; | ||||
#endif | #endif |