44 static std::random_device
res;
59 class semirandom_device {
65 typedef unsigned int result_type;
78 std::uniform_int_distribution<unsigned int> dis;
87 semirandom_device() : gen ( 0 ) {
96 result_type operator()() {
106 static constexpr result_type
min() {
116 static constexpr result_type
max() {
126 void seed (
unsigned int seed ) {
139 static semirandom_device
res;
Definition of randomness sources. Provided sources are c++ builtin random_device and own semirandom_d...
Definition: random.hpp:35
static std::random_device & random
The reference to singleton random device.
Definition: random.hpp:52
static semirandom_device & semirandom
The reference to singleton semirandom device.
Definition: random.hpp:147
static semirandom_device & getSemirandom()
Getter of the singleton semirandom device.
Definition: random.hpp:138
static std::random_device & getRandom()
Getter of the singleton random device.
Definition: random.hpp:43
return res
Definition: MinimizeByPartitioning.h:145
Definition: sigHandler.cpp:20
constexpr const T & max(const T &a)
Root case of maximum computation. The maximum from one value is the value itself.
Definition: algorithm.hpp:278
constexpr const T & min(const T &a)
Definition: algorithm.hpp:310