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