{"id":20325210,"url":"https://github.com/nermeenkamal/random-numbers-generators-and-testing","last_synced_at":"2026-06-07T00:32:20.371Z","repository":{"id":239080646,"uuid":"797944828","full_name":"NermeenKamal/Random-Numbers-Generators-And-Testing","owner":"NermeenKamal","description":"ICG (Inversive Congruential Generator), MSM (Middle Square Method), LFG (Lagged Fibonacci Generator), MRG (Multiple Recursive Generators), KS Test (Kolmogorov-Smirnov Test)","archived":false,"fork":false,"pushed_at":"2024-05-08T19:44:15.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T10:30:45.549Z","etag":null,"topics":["cpp","kolmogorov-smirnov-tests","modeling","random-generators"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NermeenKamal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-08T19:30:23.000Z","updated_at":"2024-05-11T21:09:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"725359b9-68c1-44c8-ae6c-d01313ccd3af","html_url":"https://github.com/NermeenKamal/Random-Numbers-Generators-And-Testing","commit_stats":null,"previous_names":["nermeenkamal/random-numbers-generators-and-testing"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NermeenKamal/Random-Numbers-Generators-And-Testing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NermeenKamal%2FRandom-Numbers-Generators-And-Testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NermeenKamal%2FRandom-Numbers-Generators-And-Testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NermeenKamal%2FRandom-Numbers-Generators-And-Testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NermeenKamal%2FRandom-Numbers-Generators-And-Testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NermeenKamal","download_url":"https://codeload.github.com/NermeenKamal/Random-Numbers-Generators-And-Testing/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NermeenKamal%2FRandom-Numbers-Generators-And-Testing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34005030,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-06T02:00:07.033Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","kolmogorov-smirnov-tests","modeling","random-generators"],"created_at":"2024-11-14T19:39:05.980Z","updated_at":"2026-06-07T00:32:20.349Z","avatar_url":"https://github.com/NermeenKamal.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Screenshot 2024-05-08 224247](https://github.com/NermeenKamal/Random-Numbers-Generators-And-Testing/assets/114883845/11ffd04d-6f93-4e0d-85a4-b7c55459bf79)\n\n---\n\n# Random Number Generator\n\nThis is a C++ project for generating random numbers using different methods:\n\n1. **ICG (Inversive Congruential Generator)**\n2. **MSM (Middle Square Method)**\n3. **LFG (Lagged Fibonacci Generator)**\n4. **MRG (Multiple Recursive Generators)**\n5. **KS Test (Kolmogorov-Smirnov Test)**\n\n## Introduction\n\nThis project implements various algorithms for generating random numbers and includes a method for testing the generated sequence with the KS (Kolmogorov-Smirnov) test. The methods implemented are as follows:\n\n- **ICG (Inversive Congruential Generator):** Generates random numbers using the ICG rule: X(i+1) = (a / Xi) % m.\n- **MSM (Middle Square Method):** Generates random numbers using the MSM rule: X(i) = (Xi)^2 -\u003e mid % m.\n- **LFG (Lagged Fibonacci Generator):** Generates random numbers using the LFG rule: X(i) = (Xi - j operator Xi - k) % m.\n- **MRG (Multiple Recursive Generators):** Generates random numbers using the MRG rule: X(i+1) = sum(an * Xi - q) % m.\n- **KS Test (Kolmogorov-Smirnov Test):** Performs the Kolmogorov-Smirnov test to evaluate the uniformity of the generated sequence.\n\n## Usage\n\n1. Clone this repository:\ngit clone https://github.com/NermeenKamal/random-number-generator.git\n\n\n2. Navigate to the project directory:\ncd random-number-generator\n\n\n3. Compile the code:\ng++ -o random_number_generator random_number_generator.cpp\n\n\n4. Run the program:\n./random_number_generator\n\n\n5. Follow the on-screen instructions to generate random numbers and perform the KS Test.\n\n## Method Selection\n\n1. **ICG:**\n   - Enter method number `1`.\n   - Provide the required inputs.\n   - Generated random numbers will be displayed.\n\n2. **MSM:**\n   - Enter method number `2`.\n   - Provide the required inputs.\n   - Generated random numbers will be displayed.\n\n3. **LFG:**\n   - Enter method number `3`.\n   - Provide the required inputs.\n   - Generated random numbers will be displayed.\n\n4. **MRG:**\n   - Enter method number `4`.\n   - Provide the required inputs.\n   - Generated random numbers will be displayed.\n\n5. **KS Test:**\n   - Enter method number `5`.\n   - Choose whether you want to provide your own random numbers or not.\n   - Perform the test.\n\n  ---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnermeenkamal%2Frandom-numbers-generators-and-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnermeenkamal%2Frandom-numbers-generators-and-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnermeenkamal%2Frandom-numbers-generators-and-testing/lists"}