![]() |
Libftpp
A modern C++ library
|
2D Coordinate-Based Random Number Generator More...
#include <random_2D_coordinate_generator.hpp>
Public Member Functions | |
| Random2DCoordinateGenerator () | |
| Default constructor that initializes the seed based on the current time, process ID, and a random value. More... | |
| Random2DCoordinateGenerator (long long seed) | |
| Constructor that initializes the generator with a user-defined seed. More... | |
| long long | seed () |
| long long | operator() (const long long &x, const long long &y) |
2D Coordinate-Based Random Number Generator
Definition at line 21 of file random_2D_coordinate_generator.hpp.
| Random2DCoordinateGenerator::Random2DCoordinateGenerator | ( | ) |
Default constructor that initializes the seed based on the current time, process ID, and a random value.
Definition at line 14 of file random_2D_coordinate_generator.cpp.
| Random2DCoordinateGenerator::Random2DCoordinateGenerator | ( | long long | seed | ) |
Constructor that initializes the generator with a user-defined seed.
| seed | User-defined seed for the random number generator. |
Definition at line 8 of file random_2D_coordinate_generator.cpp.
| long long Random2DCoordinateGenerator::operator() | ( | const long long & | x, |
| const long long & | y | ||
| ) |
Definition at line 35 of file random_2D_coordinate_generator.cpp.
| long long Random2DCoordinateGenerator::seed | ( | ) |
Definition at line 30 of file random_2D_coordinate_generator.cpp.