SST  14.0.0
StructuralSimulationToolkit
SST::RNG::Random Class Referenceabstract

Implements the base class for random number generators for the SST core. More...

#include "sst/core/rng/rng.h"

Inheritance diagram for SST::RNG::Random:
SST::Core::Serialization::serializable SST::RNG::MarsagliaRNG SST::RNG::MersenneRNG SST::RNG::XORShiftRNG

Public Member Functions

virtual double nextUniform ()=0
 Generates the next random number in the range [0,1).
 
virtual uint32_t generateNextUInt32 ()=0
 Generates the next random number as an unsigned 32-bit integer.
 
virtual uint64_t generateNextUInt64 ()=0
 Generates the next random number as an unsigned 64-bit integer.
 
virtual int64_t generateNextInt64 ()=0
 Generates the next random number as a signed 64-bit integer.
 
virtual int32_t generateNextInt32 ()=0
 Generates the next random number as a signed 32-bit integer.
 
virtual ~Random ()
 Destroys the random number generator.
 
virtual void serialize_order (SST::Core::Serialization::serializer &UNUSED(ser)) override
 
- Public Member Functions inherited from SST::Core::Serialization::serializable
virtual const char * cls_name () const =0
 
virtual void serialize_order (serializer &ser)=0
 
virtual uint32_t cls_id () const =0
 
virtual std::string serialization_name () const =0
 

Additional Inherited Members

- Static Public Attributes inherited from SST::Core::Serialization::serializable
static constexpr uint32_t NullClsId = std::numeric_limits<uint32_t>::max()
 
- Protected Types inherited from SST::Core::Serialization::serializable
enum  cxn_flag_t { ConstructorFlag }
 
- Static Protected Member Functions inherited from SST::Core::Serialization::serializable
static void serializable_abort (uint32_t line, const char *file, const char *func, const char *obj)
 

Detailed Description

Implements the base class for random number generators for the SST core.

This does not implement an actual RNG itself only the base class which describes the methods each class will implement.


The documentation for this class was generated from the following file: