Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JRandom.hh File Reference

Definition of random value generator. More...

#include <limits>
#include "TRandom3.h"
#include "JMath/JLimits.hh"

Go to the source code of this file.

Classes

struct  JMATH::JRandom< T, true >
 Template spacialisation of JMATH::JRandom for numerical values. More...
 
struct  JMATH::JRandom< T, false >
 Template spacialisation of JMATH::JRandom for non-numerical data types. More...
 

Namespaces

namespace  JMATH
 Auxiliary classes and methods for mathematical operations.
 
namespace  JPP
 This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 

Functions

template<class T >
JMATH::getRandom ()
 Get random value.
 
template<class T >
JMATH::getRandom (const T min, const T max)
 Get uniformly distributed random value between given limits.
 
template<class T >
JMATH::getRandom (const T min, const T max, const T precision)
 Get uniformly distributed random value between given limits.
 
template<>
double JMATH::getRandom (const double min, const double max, const double precision)
 Template specialisation for data type double.
 

Detailed Description

Definition of random value generator.

Author
mdejong

Definition in file JMath/JRandom.hh.