herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
exsample::rnd_generator< Random > Struct Template Reference

Random generator traits. More...

#include <utility.h>

Inheritance diagram for exsample::rnd_generator< Random >:

Public Member Functions

double operator() () const
 Generate uniform random number on [0,1].
 
double operator() (double a) const
 Generate uniform random number on [0,a].
 
double operator() (double a, double b) const
 Generate uniform random number on [a,b].
 

Detailed Description

template<class Random>
struct exsample::rnd_generator< Random >

Random generator traits.

Definition at line 319 of file utility.h.

Member Function Documentation

◆ operator()() [1/3]

template<class Random >
double exsample::rnd_generator< Random >::operator() ( ) const
inline

Generate uniform random number on [0,1].

Definition at line 322 of file utility.h.

◆ operator()() [2/3]

template<class Random >
double exsample::rnd_generator< Random >::operator() ( double  a) const
inline

Generate uniform random number on [0,a].

Definition at line 327 of file utility.h.

◆ operator()() [3/3]

template<class Random >
double exsample::rnd_generator< Random >::operator() ( double  a,
double  b 
) const
inline

Generate uniform random number on [a,b].

Definition at line 332 of file utility.h.


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