1#include "BesBdkRc/BesBdkRcRandom.h"
3#include "CLHEP/Random/RanluxEngine.h"
8HepRandomEngine* BesBdkRcRandom::_randomEngine=0;
11 _randomEngine=randomEngine;
16 if (_randomEngine==0){
17 cerr <<
"No random engine available in "
18 <<
"BesBdkRcRandom::random()."<<endl;
20 return _randomEngine->flat();
28 cerr<<
"min>max in BesBdkRcRandom::Flat(" << min <<
"," << max <<
")" <<endl;
48 if(_randomEngine == 0) cout<<
"Can not get randomEngine pointer in BesBdkRcRandom::FlatArray"<<endl;
49 else _randomEngine->flatArray(size,vect);
static void setRandomEngine(CLHEP::HepRandomEngine *randomEngine)
static void FlatArray(double *vect, const int size)