neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neolib::basic_random< T, Gen, Traits > Class Template Reference

#include <random.hpp>

Public Types

typedef Traits traits_type
 
typedef traits_type::value_type value_type
 
typedef traits_type::distribution_type distribution_type
 

Public Member Functions

 basic_random ()
 
template<typename T2 >
 basic_random (T2 aSeed)
 
 basic_random (std::thread::id aSeed)
 
template<typename T2 >
void seed (T2 aSeed)
 
bool is_secure () const
 
void set_secure (bool aSecure)
 
template<typename T2 >
value_type operator() (T2 aUpper)
 
template<typename T2 >
value_type operator() (T2 aLower, T2 aUpper)
 
template<typename T2 >
value_type get (T2 aUpper)
 
template<typename T2 >
value_type get (T2 aLower, T2 aUpper)
 

Detailed Description

template<typename T = uint32_t, typename Gen = std::mt19937, typename Traits = random_traits<T, Gen>>
class neolib::basic_random< T, Gen, Traits >

Definition at line 87 of file random.hpp.

Member Typedef Documentation

◆ distribution_type

template<typename T = uint32_t, typename Gen = std::mt19937, typename Traits = random_traits<T, Gen>>
typedef traits_type::distribution_type neolib::basic_random< T, Gen, Traits >::distribution_type

Definition at line 93 of file random.hpp.

◆ traits_type

template<typename T = uint32_t, typename Gen = std::mt19937, typename Traits = random_traits<T, Gen>>
typedef Traits neolib::basic_random< T, Gen, Traits >::traits_type

Definition at line 91 of file random.hpp.

◆ value_type

template<typename T = uint32_t, typename Gen = std::mt19937, typename Traits = random_traits<T, Gen>>
typedef traits_type::value_type neolib::basic_random< T, Gen, Traits >::value_type

Definition at line 92 of file random.hpp.

Constructor & Destructor Documentation

◆ basic_random() [1/3]

template<typename T = uint32_t, typename Gen = std::mt19937, typename Traits = random_traits<T, Gen>>
neolib::basic_random< T, Gen, Traits >::basic_random ( )
inline

Definition at line 100 of file random.hpp.

◆ basic_random() [2/3]

template<typename T = uint32_t, typename Gen = std::mt19937, typename Traits = random_traits<T, Gen>>
template<typename T2 >
neolib::basic_random< T, Gen, Traits >::basic_random ( T2  aSeed)
inline

Definition at line 104 of file random.hpp.

◆ basic_random() [3/3]

template<typename T = uint32_t, typename Gen = std::mt19937, typename Traits = random_traits<T, Gen>>
neolib::basic_random< T, Gen, Traits >::basic_random ( std::thread::id  aSeed)
inline

Definition at line 107 of file random.hpp.

Member Function Documentation

◆ get() [1/2]

template<typename T = uint32_t, typename Gen = std::mt19937, typename Traits = random_traits<T, Gen>>
template<typename T2 >
value_type neolib::basic_random< T, Gen, Traits >::get ( T2  aLower,
T2  aUpper 
)
inline

Definition at line 144 of file random.hpp.

◆ get() [2/2]

template<typename T = uint32_t, typename Gen = std::mt19937, typename Traits = random_traits<T, Gen>>
template<typename T2 >
value_type neolib::basic_random< T, Gen, Traits >::get ( T2  aUpper)
inline

Definition at line 138 of file random.hpp.

◆ is_secure()

template<typename T = uint32_t, typename Gen = std::mt19937, typename Traits = random_traits<T, Gen>>
bool neolib::basic_random< T, Gen, Traits >::is_secure ( ) const
inline

Definition at line 119 of file random.hpp.

◆ operator()() [1/2]

template<typename T = uint32_t, typename Gen = std::mt19937, typename Traits = random_traits<T, Gen>>
template<typename T2 >
value_type neolib::basic_random< T, Gen, Traits >::operator() ( T2  aLower,
T2  aUpper 
)
inline

Definition at line 133 of file random.hpp.

◆ operator()() [2/2]

template<typename T = uint32_t, typename Gen = std::mt19937, typename Traits = random_traits<T, Gen>>
template<typename T2 >
value_type neolib::basic_random< T, Gen, Traits >::operator() ( T2  aUpper)
inline

Definition at line 128 of file random.hpp.

◆ seed()

template<typename T = uint32_t, typename Gen = std::mt19937, typename Traits = random_traits<T, Gen>>
template<typename T2 >
void neolib::basic_random< T, Gen, Traits >::seed ( T2  aSeed)
inline

Definition at line 113 of file random.hpp.

◆ set_secure()

template<typename T = uint32_t, typename Gen = std::mt19937, typename Traits = random_traits<T, Gen>>
void neolib::basic_random< T, Gen, Traits >::set_secure ( bool  aSecure)
inline

Definition at line 123 of file random.hpp.


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