MUQ  0.4.3
muq::Utilities::RandomGeneratorTemporarySetSeed Class Reference

#include <RandomGenerator.h>

Detailed Description

Call this class to temporarily set the seed. The previous state is restored when the object is destructed. This is a fairly low quality way to do this, but is fine for testing.

Definition at line 19 of file RandomGenerator.h.

Public Member Functions

 RandomGeneratorTemporarySetSeed (int seed)
 
virtual ~RandomGeneratorTemporarySetSeed ()
 

Constructor & Destructor Documentation

◆ RandomGeneratorTemporarySetSeed()

RandomGeneratorTemporarySetSeed::RandomGeneratorTemporarySetSeed ( int  seed)

◆ ~RandomGeneratorTemporarySetSeed()

RandomGeneratorTemporarySetSeed::~RandomGeneratorTemporarySetSeed ( )
virtual

Member Data Documentation

◆ oldGenerator

std::mt19937 muq::Utilities::RandomGeneratorTemporarySetSeed::oldGenerator
private

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