AzerothCore 3.3.5a
OpenSource WoW Emulator
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 ()
 

Detailed Description

Member Typedef Documentation

◆ result_type

Member Function Documentation

◆ Instance()

RandomEngine & RandomEngine::Instance ( )
static
96{
97 return engine;
98}
static RandomEngine engine
Definition: Random.cpp:25

References engine.

Referenced by Acore::Containers::RandomShuffle().

◆ 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(); }
AC_COMMON_API uint32 rand32()
Definition: Random.cpp:72

References rand32().