TrinityCore
Loading...
Searching...
No Matches
RandomEngine Class Reference

#include <Random.h>

Public Types

typedef uint32 result_type
 

Public Member Functions

result_type operator() () const
 

Static Public Member Functions

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

Member Typedef Documentation

◆ result_type

Member Function Documentation

◆ Instance()

RandomEngine & RandomEngine::Instance ( )
static
94{
95 return engine;
96}
static RandomEngine engine
Definition: Random.cpp:25
+ Here is the caller graph for this function:

◆ max()

static constexpr result_type RandomEngine::max ( )
inlinestaticconstexpr
73{ return std::numeric_limits<result_type>::max(); }

◆ min()

static constexpr result_type RandomEngine::min ( )
inlinestaticconstexpr
72{ return std::numeric_limits<result_type>::min(); }

◆ operator()()

result_type RandomEngine::operator() ( ) const
inline
74{ return rand32(); }
TC_COMMON_API uint32 rand32()
Definition: Random.cpp:70
+ Here is the call graph for this function:

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