12 #ifndef _H_SST_CORE_RNG_UNIFORM
13 #define _H_SST_CORE_RNG_UNIFORM
40 probCount(probsCount) {
54 probCount(probsCount) {
56 baseDistrib = baseDist;
57 deleteDistrib =
false;
74 const double nextD = baseDistrib->nextUniform();
75 const double probPerBin = 1.0 / (double)(probCount);
77 for(uint32_t i = 0; i < probCount; ++i) {
78 if(nextD < ( ((
double) i) * probPerBin )) {
Definition: constant.h:22
Base class of statistical distributions in SST.
Definition: distrib.h:24
Implements a Mersenne-based RNG for use in the SST core or components.
Definition: mersenne.h:34
Implements the base class for random number generators for the SST core.
Definition: sstrng.h:27