IAtari
Genetic algorithm generating AI capable to play Atari2600 games.
Utils::Random Class Reference

#include <Random.h>

Public Types

using result_type = std::uint64_t
 

Public Member Functions

 Random ()=delete
 
 Random (std::uint64_t seed=0)
 
void seedrandom (std::uint64_t s)
 
template<int MAX>
std::uint32_t randfix ()
 
std::uint64_t randuint64 ()
 
std::uint64_t randuint64 (const std::uint64_t max)
 
result_type operator() ()
 
template<>
std::uint32_t randfix ()
 

Static Public Member Functions

static Randomget_Rng (void)
 
static constexpr result_type min ()
 
static constexpr result_type max ()
 

Member Typedef Documentation

◆ result_type

using Utils::Random::result_type = std::uint64_t

Constructor & Destructor Documentation

◆ Random() [1/2]

Utils::Random::Random ( )
delete

◆ Random() [2/2]

Utils::Random::Random ( std::uint64_t  seed = 0)

Member Function Documentation

◆ get_Rng()

Random & Utils::Random::get_Rng ( void  )
static

◆ max()

static constexpr result_type Utils::Random::max ( )
inlinestatic

◆ min()

static constexpr result_type Utils::Random::min ( )
inlinestatic

◆ operator()()

result_type Utils::Random::operator() ( )
inline

◆ randfix() [1/2]

template<int MAX>
std::uint32_t Utils::Random::randfix ( )
inline

◆ randfix() [2/2]

template<>
std::uint32_t Utils::Random::randfix ( )
inline

◆ randuint64() [1/2]

std::uint64_t Utils::Random::randuint64 ( )

◆ randuint64() [2/2]

std::uint64_t Utils::Random::randuint64 ( const std::uint64_t  max)

◆ seedrandom()

void Utils::Random::seedrandom ( std::uint64_t  s)

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