#include <RandomGenerator.h>
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 () |
RandomGeneratorTemporarySetSeed::RandomGeneratorTemporarySetSeed | ( | int | seed | ) |
Definition at line 241 of file RandomGenerator.cpp.
References muq::Utilities::RandomGenerator::GetGenerator(), oldGenerator, and muq::Utilities::RandomGenerator::SetSeed().
|
virtual |
Definition at line 247 of file RandomGenerator.cpp.
References muq::Utilities::RandomGenerator::GetGenerator(), and oldGenerator.
|
private |
Definition at line 26 of file RandomGenerator.h.
Referenced by RandomGeneratorTemporarySetSeed(), and ~RandomGeneratorTemporarySetSeed().