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