{"id":16139876,"url":"https://github.com/marcofaziorandom/gaussian-random","last_synced_at":"2025-10-14T09:04:16.845Z","repository":{"id":179934167,"uuid":"237485978","full_name":"MarcoFazioRandom/Gaussian-Random","owner":"MarcoFazioRandom","description":"An implementation of the Marsaglia polar method for generating random number with a Gaussian distribution.","archived":false,"fork":false,"pushed_at":"2020-01-31T18:57:51.000Z","size":421,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-13T00:17:08.636Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/MarcoFazioRandom.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":"2020-01-31T17:55:34.000Z","updated_at":"2023-10-28T13:55:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"fb907bbb-8c38-4cb1-b016-21645d1d8da4","html_url":"https://github.com/MarcoFazioRandom/Gaussian-Random","commit_stats":null,"previous_names":["marcofaziorandom/gaussian-random"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcoFazioRandom%2FGaussian-Random","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcoFazioRandom%2FGaussian-Random/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcoFazioRandom%2FGaussian-Random/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcoFazioRandom%2FGaussian-Random/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MarcoFazioRandom","download_url":"https://codeload.github.com/MarcoFazioRandom/Gaussian-Random/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247526772,"owners_count":20953143,"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":[],"created_at":"2024-10-09T23:50:01.134Z","updated_at":"2025-10-14T09:04:16.751Z","avatar_url":"https://github.com/MarcoFazioRandom.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gaussian-Random\n**An implementation of the Marsaglia polar method for generating random number with a Gaussian distribution.**\n\nThe class MyRandom can be used just like the System.Random class and calling the method NextGaussian() will return a double between (-1, 1) with the mean at 0.\n\n\n### Standard deviation:\nFrom [Wikipedia](https://en.wikipedia.org/wiki/Normal_distribution):\n\u003e the standard deviation (SD, also represented by the lower case Greek letter sigma σ for the population standard deviation or the Latin letter s for the sample standard deviation) is a measure of the amount of variation or dispersion of a set of values. A low standard deviation indicates that the values tend to be close to the mean (also called the expected value) of the set, while a high standard deviation indicates that the values are spread out over a wider range.\n\nSo with a SD of 1 The method NextGaussian(1) will a distribution that follows a Standard Normal Distribution curve (a standard bell form), if the SD if less than 1 the curve will be more narrow, if it's more than 1 the curve will be more flat.\n\n\n### Examples (with 1024 values):\n\n#### SD = 0.5:\n\u003cimg src=\"Images/Circle05.png\" width=\"200\"\u003e \u003cimg src=\"Images/Bars05.png\" width=\"400\"\u003e\n\n#### SD = 1:\n\u003cimg src=\"Images/Circle1.png\" width=\"200\"\u003e \u003cimg src=\"Images/Bars1.png\" width=\"400\"\u003e\n\n#### SD = 1.5:\n\u003cimg src=\"Images/Circle15.png\" width=\"200\"\u003e \u003cimg src=\"Images/Bars15.png\" width=\"400\"\u003e\n\n\n### Performance:\nTest made using Unity:\n\n\u003cimg src=\"Images/Benchmark.png\" width=\"300\"\u003e \u003cimg src=\"Images/BenchmarkGraph.png\" width=\"300\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcofaziorandom%2Fgaussian-random","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcofaziorandom%2Fgaussian-random","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcofaziorandom%2Fgaussian-random/lists"}