ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
RandUint Class Reference

#include <RandUint.h>

Collaboration diagram for RandUint:

Public Member Functions

 RandUint ()
 
 RandUint (std::size_t low, std::size_t high)
 
std::size_t operator() ()
 

Private Attributes

std::default_random_engine m_re
 
std::uniform_int_distribution< std::size_t > m_dist
 

Detailed Description

Definition at line 8 of file RandUint.h.

Constructor & Destructor Documentation

◆ RandUint() [1/2]

RandUint::RandUint ( )
inline

Definition at line 10 of file RandUint.h.

10 :m_dist(0, 1){}

◆ RandUint() [2/2]

RandUint::RandUint ( std::size_t  low,
std::size_t  high 
)
inline

Definition at line 11 of file RandUint.h.

11 :m_dist(low, high){}

Member Function Documentation

◆ operator()()

std::size_t RandUint::operator() ( )
inline

Definition at line 12 of file RandUint.h.

12 {return m_dist(m_re);}

Member Data Documentation

◆ m_dist

std::uniform_int_distribution<std::size_t> RandUint::m_dist
private

Definition at line 15 of file RandUint.h.

◆ m_re

std::default_random_engine RandUint::m_re
private

Definition at line 14 of file RandUint.h.


The documentation for this class was generated from the following file:
RandUint::m_dist
std::uniform_int_distribution< std::size_t > m_dist
Definition: RandUint.h:15
RandUint::m_re
std::default_random_engine m_re
Definition: RandUint.h:14