Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JMATH::JRandom< T, is_specialized > Struct Template Reference

Template definition of random value generator. More...

Public Member Functions

double getRandom ()
 Template specialisation for data type double because TRandom has 32 bits.
 

Detailed Description

template<class T, bool is_specialized = JLimits<T>::is_specialized>
struct JMATH::JRandom< T, is_specialized >

Template definition of random value generator.

Definition at line 26 of file JMath/JRandom.hh.

Member Function Documentation

◆ getRandom()

double JMATH::JRandom< double >::getRandom ( )
inline

Template specialisation for data type double because TRandom has 32 bits.

Definition at line 64 of file JMath/JRandom.hh.

65 {
66 return gRandom->Uniform((Double_t) JLimits<float>::min(), (Double_t) JLimits<float>::max());
67 }
float min()
Get minimum possible value.
Definition JLimits.hh:96
TTimeStamp max()
Get maximum possible value.

The documentation for this struct was generated from the following file: