All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Macros | Functions
Random.cpp File Reference
#include <cmath>
#include <omp.h>
#include <limits>
#include "Random.h"

Namespaces

 Aux
 
 Aux::Random
 Provides several functions for random-numbers.
 

Macros

#define AUX_THREAD_LOCAL
 

Functions

void Aux::Random::setSeed (uint64_t seed, bool useThreadId)
 Sets the random seed that is used globally. More...
 
uint64_t Aux::Random::getSeed ()
 
std::mt19937_64 & Aux::Random::getURNG ()
 
uint64_t Aux::Random::integer ()
 
uint64_t Aux::Random::integer (uint64_t upperBound)
 
uint64_t Aux::Random::integer (uint64_t lowerBound, uint64_t upperBound)
 
double Aux::Random::real ()
 
double Aux::Random::real (double upperBound)
 
double Aux::Random::real (double lowerBound, double upperBound)
 
double Aux::Random::probability ()
 
std::size_t Aux::Random::index (std::size_t max)
 

Macro Definition Documentation

#define AUX_THREAD_LOCAL