OpenMD 3.0
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
OpenMD::Utils::RandNumGen Class Reference

Minimize the interface for the standard library's Mersenne Twister PRNG while maintaining the UniformRandomBitGenerator named requirement. More...

#include <RandNumGen.hpp>

Public Types

using result_type = std::mt19937::result_type
 

Public Member Functions

 RandNumGen (result_type seed)
 
result_type operator() ()
 

Static Public Member Functions

static constexpr result_type min ()
 
static constexpr result_type max ()
 

Detailed Description

Minimize the interface for the standard library's Mersenne Twister PRNG while maintaining the UniformRandomBitGenerator named requirement.

Definition at line 59 of file RandNumGen.hpp.

Member Typedef Documentation

◆ result_type

using OpenMD::Utils::RandNumGen::result_type = std::mt19937::result_type

Definition at line 62 of file RandNumGen.hpp.

Constructor & Destructor Documentation

◆ RandNumGen()

OpenMD::Utils::RandNumGen::RandNumGen ( result_type seed)
explicit

Definition at line 58 of file RandNumGen.cpp.

Member Function Documentation

◆ max()

static constexpr result_type OpenMD::Utils::RandNumGen::max ( )
inlinestaticconstexpr

Definition at line 65 of file RandNumGen.hpp.

◆ min()

static constexpr result_type OpenMD::Utils::RandNumGen::min ( )
inlinestaticconstexpr

Definition at line 64 of file RandNumGen.hpp.

◆ operator()()

result_type OpenMD::Utils::RandNumGen::operator() ( )
inline

Definition at line 70 of file RandNumGen.hpp.


The documentation for this class was generated from the following files: