{"id":25799995,"url":"https://github.com/redmooner/probabilityvariable","last_synced_at":"2026-06-09T13:31:07.691Z","repository":{"id":143525074,"uuid":"587150557","full_name":"RedMooner/ProbabilityVariable","owner":"RedMooner","description":"getting an array index with a given probability","archived":false,"fork":false,"pushed_at":"2023-01-10T04:38:56.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-27T20:38:35.496Z","etag":null,"topics":["csharp","dotnet","probability"],"latest_commit_sha":null,"homepage":"","language":"C#","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/RedMooner.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":"2023-01-10T04:26:38.000Z","updated_at":"2023-07-18T05:05:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"d8ce9a45-95bb-4be4-87e4-9c9343df2e54","html_url":"https://github.com/RedMooner/ProbabilityVariable","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/RedMooner/ProbabilityVariable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedMooner%2FProbabilityVariable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedMooner%2FProbabilityVariable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedMooner%2FProbabilityVariable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedMooner%2FProbabilityVariable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RedMooner","download_url":"https://codeload.github.com/RedMooner/ProbabilityVariable/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedMooner%2FProbabilityVariable/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34110010,"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-09T02:00:06.510Z","response_time":63,"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":["csharp","dotnet","probability"],"created_at":"2025-02-27T15:58:14.537Z","updated_at":"2026-06-09T13:31:07.679Z","avatar_url":"https://github.com/RedMooner.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ProbabilityVariable\n![alt text](https://www.mentalconstruction.com/wp-content/uploads/2017/07/probability-line.gif)\n# Usage\n```C#\n  PosibilityController posibilityController = new PosibilityController(10);\n  posibilityController.SetProbabilities(new float[] { 0.5f, 0.25f, 0.2f,0.05f });\n  for (int i = 0; i \u003c 100; i++)\n  {\n      Console.WriteLine(posibilityController.GetRandomValue());\n  }\n  Console.ReadLine();\n```\n1. Create object of class PosibilityController\n2. Set probabilities (0 \u003c P \u003c= 1)\n3. You can use method 'GetRandomValue' to generate some array index as probability you set\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredmooner%2Fprobabilityvariable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredmooner%2Fprobabilityvariable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredmooner%2Fprobabilityvariable/lists"}