26#include "CLHEP/Random/RanluxEngine.h"
31HepRandomEngine* BabayagaNLORandom::_randomEngine=0;
34 _randomEngine=randomEngine;
40 if (_randomEngine==0){
41 cerr <<
"No random engine available in "
42 <<
"BabayagaNLORandom::random()."<<endl;
45 return _randomEngine->flat();
53 cerr<<
"min>max in BabayagaNLORandom::Flat(" <<
min <<
"," <<
max <<
")" <<endl;
73 if(_randomEngine == 0)
74 cout<<
"Can not get randomEngine pointer in BabayagaNLORandom::FlatArray"<<endl;
76 _randomEngine->flatArray(size,vect);
82 double *dvec =
new double [size];
83 if(_randomEngine == 0) {
84 cout<<
"Can not get randomEngine pointer in BabayagaNLORandom::FlatArray"<<endl;
88 _randomEngine->flatArray(size,dvec);
91 for (
int i=0; i<size; i++) vect[i] = dvec[i];
void babayaga_ranlux_(float *vect, const int &size)
void babayaga_ranluxd_(double *vect, const int &size)
static void setRandomEngine(CLHEP::HepRandomEngine *randomEngine)
static void FlatArrayF(float *vect, const int size)
static void FlatArray(double *vect, const int size)