12#ifndef SST_CORE_RNG_UNIFORM_H
13#define SST_CORE_RNG_UNIFORM_H
20using namespace SST::RNG;
80 uint32_t current_bin = 1;
82 while ( nextD > (
static_cast<double>(current_bin) *
probPerBin) ) {
86 return static_cast<double>(current_bin - 1);
Implements a Mersenne-based RNG for use in the SST core or components.
Definition: mersenne.h:35
Base class of statistical distributions in SST.
Definition: distrib.h:23
Implements the base class for random number generators for the SST core.
Definition: rng.h:28
virtual double nextUniform()=0
Generates the next random number in the range [0,1).