LibreOffice Module comphelper (master) 1
Namespaces | Macros | Functions
random.cxx File Reference
#include <comphelper/random.hxx>
#include <sal/log.hxx>
#include <assert.h>
#include <time.h>
#include <mutex>
#include <random>
#include <stdexcept>
Include dependency graph for random.cxx:

Go to the source code of this file.

Namespaces

namespace  comphelper
 
namespace  comphelper::rng
 

Macros

#define STD_RNG_ALGO   std::mt19937
 

Functions

int comphelper::rng::uniform_int_distribution (int a, int b)
 uniform distribution in [a,b] More...
 
unsigned int comphelper::rng::uniform_uint_distribution (unsigned int a, unsigned int b)
 uniform distribution in [a,b] More...
 
size_t comphelper::rng::uniform_size_distribution (size_t a, size_t b)
 uniform distribution in [a,b] More...
 
double comphelper::rng::uniform_real_distribution (double a=0.0, double b=1.0)
 uniform distribution in [a,b) More...
 

Macro Definition Documentation

◆ STD_RNG_ALGO

#define STD_RNG_ALGO   std::mt19937

Definition at line 35 of file random.cxx.

Variable Documentation

◆ global_rng

STD_RNG_ALGO global_rng

Definition at line 42 of file random.cxx.

◆ mutex

std::mutex mutex