Libftpp
A modern C++ library
random_2D_coordinate_generator.hpp
Go to the documentation of this file.
1 #ifndef RANDOM_2D_COORDINATE_GENERATOR_HPP
2 #define RANDOM_2D_COORDINATE_GENERATOR_HPP
3 
4 #include <unistd.h>
5 
6 #include <chrono>
7 #include <cstdlib>
8 #include <functional>
22 {
23 private:
24  long long _seed;
25 
26 public:
29 
30  long long seed();
31  long long operator()(const long long& x, const long long& y);
32 };
33 #endif
2D Coordinate-Based Random Number Generator
Random2DCoordinateGenerator()
Default constructor that initializes the seed based on the current time, process ID,...
long long operator()(const long long &x, const long long &y)