Skip to content

A tool for testing and analyzing randomness using random number generators, estimating π and visualizing results.

Notifications You must be signed in to change notification settings

snigdhab7/Randomness-Analysis-Tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Random Generator Test 🎲📊

A simple C++ project to test the randomness of a generator and estimate the value of π using Euclid's Algorithm for GCD.

Overview

This project generates an array of random integers and calculates the probability that the GCD (Greatest Common Divisor) of randomly chosen pairs is 1. The estimation of π is then derived from this probability using the formula: π ≈ √(6 * (N/2) / Count), where N is the array size.

How to Run

  1. Clone the repository:

    git clone https://github.com/snigdhab7/Testing_Random_Generator.git
  2. Import the project into your preferred C++ IDE.

  3. Build and run the file. Link to Random Generator Test Code File

  4. The console will display the estimated value of π based on the random generator.

Sample Output

Estimation of PI

Further Improvements

  • Enhance the randomization algorithm.
  • Implement additional statistical tests.
  • Share your findings and improvements with the community.

Contributions 🤝

Contributions are welcome! Feel free to open issues and pull requests.

About

A tool for testing and analyzing randomness using random number generators, estimating π and visualizing results.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages