68 #include <visp3/core/vpConfig.h> 70 #if defined(_MSC_VER) && (_MSC_VER < 1700) 71 typedef unsigned __int64 uint64_t;
72 typedef unsigned __int32 uint32_t;
74 # include <inttypes.h> 103 struct pcg_state_setseq_64 {
108 pcg_state_setseq_64(uint64_t state_ = 0x853c49e6748fea9bULL, uint64_t inc_ = 0xda3e39cb94b95bdbULL) :
109 state(state_), inc(inc_)
113 typedef struct pcg_state_setseq_64 pcg32_random_t;
117 vpUniRand(uint64_t seed, uint64_t seq=0x123465789ULL);
122 int uniform(
int a,
int b);
123 float uniform(
float a,
float b);
124 double uniform(
double a,
double b);
125 void setSeed(uint64_t initstate, uint64_t initseq);
128 uint32_t boundedRand(uint32_t bound);
132 pcg32_random_t m_rng;
Class for generating random numbers with uniform probability density.