Skip to content

cyberytti/cpp-random-generator-from-scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

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:

clang++ -std=c++11 -o random_generator random_generator.cpp

Usage

After building the project, run the executable:

./random_generator

This will print a pseudo-random number to the console.

Requirements

  • C++ compiler (e.g., g++, clang++)
  • POSIX-compatible system (for <sys/time.h>)

About

A simple C++ project that generates pseudo-random numbers from system time, built from scratch without using standard RNG libraries.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages