Changeset View
Changeset View
Standalone View
Standalone View
EvtGenBase/EvtRandom.hh
Show All 28 Lines | public: | ||||
static double Flat( double max ); | static double Flat( double max ); | ||||
static double Flat( double min, double max ); | static double Flat( double min, double max ); | ||||
//generate unit Gaussian | //generate unit Gaussian | ||||
static double Gaussian(); | static double Gaussian(); | ||||
static double random(); | static double random(); | ||||
static unsigned long urandom(); | |||||
//This class does not take ownership of the random engine; | //This class does not take ownership of the random engine; | ||||
//the caller needs to make sure that the engine is not | //the caller needs to make sure that the engine is not | ||||
//destroyed. | //destroyed. | ||||
static void setRandomEngine( EvtRandomEngine* randomEngine ); | static void setRandomEngine( EvtRandomEngine* randomEngine ); | ||||
private: | private: | ||||
static EvtRandomEngine* _randomEngine; | static EvtRandomEngine* _randomEngine; | ||||
}; | }; | ||||
#endif | #endif |