LibreOffice Module comphelper (master)  1
Namespaces | Macros | Functions
random.cxx File Reference
#include <comphelper/random.hxx>
#include <rtl/instance.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

 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

#define STD_RNG_ALGO   std::mt19937

Definition at line 37 of file random.cxx.

Variable Documentation

STD_RNG_ALGO global_rng

Definition at line 44 of file random.cxx.

std::mutex mutex

Definition at line 43 of file random.cxx.