Class RandomGenerator

Inheritance Relationships

Base Type

  • public default_random_engine

Class Documentation

class RandomGenerator : public default_random_engine

This class extends the std::default_random_engine to be able to set seeds more easily.

Public Functions

inline RandomGenerator()

Constructs a random generator with the seed set as the current timestamp.

inline RandomGenerator(unsigned long s)

Constructs a random generator with a given seed.

Parameters

s – The seed of the random engine.