graph_analysis
RandomNumberGenerator.hpp
Go to the documentation of this file.
1 #ifndef GRAPH_ANALYSIS_PERCOLATION_RANDOM_NUMBER_GENERATOR_HPP
2 #define GRAPH_ANALYSIS_PERCOLATION_RANDOM_NUMBER_GENERATOR_HPP
3 
4 #include <stdint.h>
5 #include <random>
6 
7 namespace graph_analysis {
8 namespace percolation {
9 
15 {
16  uint32_t mSeed;
17  mutable std::mt19937 mRandomNumberGenerator;
18 
19 public:
21 
22  RandomNumberGenerator(uint32_t seed);
23 
28  double getUniformPositiveNumber() const;
29 };
30 
31 } // end namespace percolation
32 } // end namespace graph_analysis
33 #endif // GRAPH_ANALYSIS_PERCOLATION_RANDOM_NUMBER_GENERATOR_HPP
graph_analysis
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
graph_analysis::percolation::RandomNumberGenerator
Definition: RandomNumberGenerator.hpp:14
percolation
Percolation deals with a changing graph, i.e., nodes and edges that disappear from the graph.
graph_analysis::percolation::RandomNumberGenerator::getUniformPositiveNumber
double getUniformPositiveNumber() const
Definition: RandomNumberGenerator.cpp:21
graph_analysis::percolation::RandomNumberGenerator::RandomNumberGenerator
RandomNumberGenerator()
Definition: RandomNumberGenerator.cpp:8