32#include "CLHEP/Random/defs.h"
33#include "CLHEP/Random/Random.h"
34#include "CLHEP/Utility/memory.h"
35#include "CLHEP/Utility/thread_local.h"
67 static double shoot();
69 static inline double shoot(
double width );
71 static inline double shoot(
double a,
double b );
75 static inline long shootInt(
long a1,
long n );
79 static void shootArray (
const int size,
double* vect );
81 static void shootArray (
const int size,
double* vect,
82 double lx,
double dx );
100 const int size,
double* vect );
103 const int size,
double* vect,
104 double lx,
double dx );
111 inline double fire(
double width );
113 inline double fire(
double a,
double b );
121 void fireArray (
const int size,
double* vect);
123 void fireArray (
const int size,
double* vect,
124 double lx,
double dx);
132 std::ostream &
put ( std::ostream & os )
const;
133 std::istream &
get ( std::istream & is );
135 std::string
name()
const;
178 inline void fireBits();
179 static inline void shootBits();
192 static const unsigned long MSB;
193 static const int MSBBits;
196 unsigned long randomInt;
197 unsigned long firstUnusedBit;
198 static CLHEP_THREAD_LOCAL
unsigned long staticRandomInt;
199 static CLHEP_THREAD_LOCAL
unsigned long staticFirstUnusedBit;
201 std::shared_ptr<HepRandomEngine> localEngine;
210#ifdef ENABLE_BACKWARDS_COMPATIBILITY
212using namespace CLHEP;
215#include "CLHEP/Random/RandFlat.icc"
double fire(double width)
static double shoot(double a, double b)
static std::ostream & saveFullState(std::ostream &os)
RandFlat(HepRandomEngine *anEngine)
std::ostream & put(std::ostream &os) const
static long shootInt(long a1, long n)
static long shootInt(HepRandomEngine *anEngine, long n)
double fire(double a, double b)
static int shootBit(HepRandomEngine *)
static double shoot(HepRandomEngine *anEngine)
RandFlat(HepRandomEngine &anEngine)
RandFlat(HepRandomEngine *anEngine, double width)
RandFlat(HepRandomEngine &anEngine, double a, double b)
static double shoot(HepRandomEngine *anEngine, double width)
static long shootInt(long n)
static void restoreEngineStatus(const char filename[]="Config.conf")
void fireArray(const int size, double *vect)
static double shoot(double width)
long fireInt(long a1, long n)
static std::string distributionName()
static void saveEngineStatus(const char filename[]="Config.conf")
static std::ostream & saveDistState(std::ostream &os)
RandFlat(HepRandomEngine &anEngine, double width)
RandFlat(HepRandomEngine *anEngine, double a, double b)
static std::istream & restoreDistState(std::istream &is)
static void shootArray(const int size, double *vect)
static std::istream & restoreFullState(std::istream &is)
static double shoot(HepRandomEngine *anEngine, double a, double b)
static long shootInt(HepRandomEngine *anEngine, long a1, long n)
std::istream & get(std::istream &is)
static void shootArray(HepRandomEngine *anEngine, const int size, double *vect)
HepRandomEngine & engine()