{"id":18265741,"url":"https://github.com/jacksonrakena/lcg-toolkit","last_synced_at":"2025-08-31T21:42:52.428Z","repository":{"id":108906162,"uuid":"373333495","full_name":"jacksonrakena/lcg-toolkit","owner":"jacksonrakena","description":"Simulator and plotter for linear congruential generator (LCG) functions in Python","archived":false,"fork":false,"pushed_at":"2021-08-18T21:50:47.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-14T20:31:58.222Z","etag":null,"topics":["borland","congruence","congruent","congruential","data-analysis","data-science","generation","generator","lcg","linear","linear-congruential-generator","numerical-recipes","randu","randu-function","randu-generator","randu-rng","rng"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jacksonrakena.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-06-03T00:04:13.000Z","updated_at":"2021-06-03T20:03:11.000Z","dependencies_parsed_at":"2023-04-04T05:55:44.423Z","dependency_job_id":null,"html_url":"https://github.com/jacksonrakena/lcg-toolkit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacksonrakena%2Flcg-toolkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacksonrakena%2Flcg-toolkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacksonrakena%2Flcg-toolkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacksonrakena%2Flcg-toolkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jacksonrakena","download_url":"https://codeload.github.com/jacksonrakena/lcg-toolkit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247958715,"owners_count":21024827,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["borland","congruence","congruent","congruential","data-analysis","data-science","generation","generator","lcg","linear","linear-congruential-generator","numerical-recipes","randu","randu-function","randu-generator","randu-rng","rng"],"created_at":"2024-11-05T11:19:36.400Z","updated_at":"2025-04-09T01:45:42.817Z","avatar_url":"https://github.com/jacksonrakena.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Linear Congruential Generator Toolkit\nSimulator and plotter for linear congruential generator (LCG) functions in Python 3 with MatPlotLib.  \n\nThis was made for academic purposes, to study the function of linear congruential generations and specifically the famed RANDU LCG function.\n\n\n### Usage\nTo run as the generator is currently set, just run `python lcg.py` (`python3 lcg.py` on Mac).  \nThis will simulate `RANGE_END-RANGE_START` generations and plot them with a MatPlotLib display.  \nTo change the LCG parameters, set them in the top of `lcg.py`:\n```py\n# SEED VALUE\n# RANDOM NUMBER = randint(1, 0x7FFFFFFF)\nX0 = randint(1, 0x7FFFFFFF)\n\nRANGE_START = 0\nRANGE_END = 500\n\n# MULTIPLICATIVE FACTOR\nA = 1664525\n\n# ADDITIVE FACTOR\nC = 1013904223\n\n# MODULUS FACTOR\nM = 2**32\n```\nThe LCG function is expressed as `X(i+1) = ((A*X(i)) + C) mod M`.\n\n### Copyright\n`lcg-toolkit` is copyright \u0026copy; 2021 Jackson Rakena under the MIT License.  \nYou are free to use this in your academic papers or projects, but please include a credit and link to this repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacksonrakena%2Flcg-toolkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacksonrakena%2Flcg-toolkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacksonrakena%2Flcg-toolkit/lists"}