hej is hosted by Hepforge, IPPP Durham
HEJ 2.2.2
High energy resummation for hadron colliders
Loading...
Searching...
No Matches
HEJ::RNG Struct Referenceabstract

Interface for random number generator. More...

#include <RNG.hh>

Inheritance diagram for HEJ::RNG:

Public Types

using result_type = unsigned
 Random number type, see std::RandomNumberDistribution. More...
 

Public Member Functions

virtual double flat ()=0
 Generate random number in [0,1) More...
 
result_type operator() ()
 Generate random number in [min(), max()]. More...
 
virtual ~RNG ()=default
 

Static Public Member Functions

static constexpr result_type min ()
 Minimum number that can be generated. More...
 
static constexpr result_type max ()
 Maximum number that can be generated. More...
 

Detailed Description

Interface for random number generator.

Member Typedef Documentation

◆ result_type

using HEJ::RNG::result_type = unsigned

Random number type, see std::RandomNumberDistribution.

Constructor & Destructor Documentation

◆ ~RNG()

virtual HEJ::RNG::~RNG ( )
virtualdefault

Member Function Documentation

◆ flat()

virtual double HEJ::RNG::flat ( )
pure virtual

Generate random number in [0,1)

Implemented in HEJ::Mixmax, and HEJ::Ranlux64.

◆ max()

static constexpr result_type HEJ::RNG::max ( )
inlinestaticconstexpr

Maximum number that can be generated.

◆ min()

static constexpr result_type HEJ::RNG::min ( )
inlinestaticconstexpr

Minimum number that can be generated.

◆ operator()()

result_type HEJ::RNG::operator() ( )
inline

Generate random number in [min(), max()].


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