14#include "../Eepipi/EepipiRandom.h"
16#include "CLHEP/Random/RanluxEngine.h"
21HepRandomEngine* EepipiRandom::_randomEngine=0;
24 _randomEngine=randomEngine;
30 if (_randomEngine==0){
31 cerr <<
"No random engine available in "
32 <<
"EepipiRandom::random()."<<endl;
34 return _randomEngine->flat();
42 cerr<<
"min>max in EepipiRandom::Flat(" <<
min <<
"," <<
max <<
")" <<endl;
62 if(_randomEngine == 0) cout<<
"Can not get randomEngine pointer in EepipiRandom::FlatArray"<<endl;
63 else _randomEngine->flatArray(size,vect);
static void FlatArray(double *vect, const int size)
static void setRandomEngine(CLHEP::HepRandomEngine *randomEngine)