This project provides a basic implementation of a pseudo random number generator using C++ and system time.
- Generates pseudo-random numbers based on the current system time
- Simple and lightweight implementation
- Uses standard C++ and POSIX headers
random_number_generator.cpp: Contains the implementation of the random number generator and a demo inmain().
To compile the program:
clang++ -std=c++11 -o random_generator random_generator.cppAfter building the project, run the executable:
./random_generatorThis will print a pseudo-random number to the console.
- C++ compiler (e.g., g++, clang++)
- POSIX-compatible system (for
<sys/time.h>)