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

Detailed Description

Definition at line 67 of file Random.h.

Member Typedef Documentation

◆ result_type

Definition at line 70 of file Random.h.

Member Function Documentation

◆ Instance()

RandomEngine & RandomEngine::Instance ( )
static

Definition at line 93 of file Random.cpp.

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

Definition at line 73 of file Random.h.

73{ return std::numeric_limits<result_type>::max(); }

◆ min()

static constexpr result_type RandomEngine::min ( )
inlinestaticconstexpr

Definition at line 72 of file Random.h.

72{ return std::numeric_limits<result_type>::min(); }

◆ operator()()

result_type RandomEngine::operator() ( ) const
inline

Definition at line 74 of file Random.h.

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: