https://github.com/cyberytti/cpp-random-generator-from-scratch
A simple C++ project that generates pseudo-random numbers from system time, built from scratch without using standard RNG libraries.
https://github.com/cyberytti/cpp-random-generator-from-scratch
Last synced: 11 months ago
JSON representation
A simple C++ project that generates pseudo-random numbers from system time, built from scratch without using standard RNG libraries.
- Host: GitHub
- URL: https://github.com/cyberytti/cpp-random-generator-from-scratch
- Owner: cyberytti
- Created: 2025-06-30T05:15:09.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-06-30T05:17:01.000Z (12 months ago)
- Last Synced: 2025-06-30T06:26:13.484Z (12 months ago)
- Language: C++
- Size: 2.93 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pseudo Random Number Generator (C++)
This project provides a basic implementation of a pseudo random number generator using C++ and system time.
## Features
* Generates pseudo-random numbers based on the current system time
* Simple and lightweight implementation
* Uses standard C++ and POSIX headers
## Files
* `random_number_generator.cpp`: Contains the implementation of the random number generator and a demo in `main()`.
## Build Instructions
To compile the program:
```bash
clang++ -std=c++11 -o random_generator random_generator.cpp
```
## Usage
After building the project, run the executable:
```bash
./random_generator
```
This will print a pseudo-random number to the console.
## Requirements
* C++ compiler (e.g., g++, clang++)
* POSIX-compatible system (for ``)