LibreOffice Module comphelper (master) 1
|
#include <comphelper/random.hxx>
#include <sal/log.hxx>
#include <assert.h>
#include <time.h>
#include <mutex>
#include <random>
#include <stdexcept>
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... | |
#define STD_RNG_ALGO std::mt19937 |
Definition at line 35 of file random.cxx.
STD_RNG_ALGO global_rng |
Definition at line 42 of file random.cxx.
std::mutex mutex |
Definition at line 41 of file random.cxx.
Referenced by comphelper::OMultiTypeInterfaceContainerHelperVar4< key, listener, equalImpl >::disposeAndClear(), comphelper::getTypeEntries(), comphelper::SingletonRef< SingletonClass >::ownStaticLock(), comphelper::OIdPropertyArrayUsageHelper< TYPE >::theMutex(), and comphelper::OPropertyArrayUsageHelper< TYPE >::theMutex().