hej is hosted by Hepforge, IPPP Durham
HEJ 2.1.4
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...
 
virtual result_type min () const =0
 Minimum number that can be generated. More...
 
virtual result_type max () const =0
 Maximum number that can be generated. More...
 
virtual result_type operator() ()=0
 Generate random number in [min(), max()]. More...
 
virtual ~RNG ()=default
 

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()

virtual result_type HEJ::RNG::max ( ) const
pure virtual

Maximum number that can be generated.

Implemented in HEJ::DefaultRNG.

◆ min()

virtual result_type HEJ::RNG::min ( ) const
pure virtual

Minimum number that can be generated.

Implemented in HEJ::DefaultRNG.

◆ operator()()

virtual result_type HEJ::RNG::operator() ( )
pure virtual

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

Implemented in HEJ::DefaultRNG.


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