{"id":17043731,"url":"https://github.com/kaleidawave/randomizer","last_synced_at":"2025-07-04T08:05:11.660Z","repository":{"id":113213395,"uuid":"183271839","full_name":"kaleidawave/randomizer","owner":"kaleidawave","description":"A randomizer made in C# for choosing a random item with a weighted chance","archived":false,"fork":false,"pushed_at":"2019-04-24T19:28:12.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T02:27:36.351Z","etag":null,"topics":["csharp","generic-types"],"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/kaleidawave.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":"2019-04-24T16:59:52.000Z","updated_at":"2019-08-13T20:31:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"61f5b7ad-d06b-4fd8-8c1a-0fcdf340ae2d","html_url":"https://github.com/kaleidawave/randomizer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kaleidawave/randomizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaleidawave%2Frandomizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaleidawave%2Frandomizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaleidawave%2Frandomizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaleidawave%2Frandomizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaleidawave","download_url":"https://codeload.github.com/kaleidawave/randomizer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaleidawave%2Frandomizer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263472279,"owners_count":23471812,"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":["csharp","generic-types"],"created_at":"2024-10-14T09:30:30.447Z","updated_at":"2025-07-04T08:05:11.620Z","avatar_url":"https://github.com/kaleidawave.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=center\u003eRandomizer\u003c/h1\u003e\n\nA randomizer made in C# for choosing a random item with a weighted chance\n\n\u003ch2 align=center\u003eUsage:\u003c/h2\u003e\n\n```cs\nusing Randomizer;\n\n// Create an object that inherits the 'IWeighted' inheritance with the 'Weight' property\nstruct Reward: IWeighted\n{\n    int Weight { get; set; }\n    ...\n}\n\n// Past a list of objects into the constructor\nList\u003cReward\u003e foo = ...\nRandomizer\u003cReward\u003e bar = new Randomizer\u003cReward\u003e(foo);\n\n// Retrieve results!!!\nReward x = bar.Pick();\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaleidawave%2Frandomizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaleidawave%2Frandomizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaleidawave%2Frandomizer/lists"}