{"id":19905112,"url":"https://github.com/solutena/probability","last_synced_at":"2026-04-28T15:37:32.495Z","repository":{"id":211573344,"uuid":"729494120","full_name":"solutena/Probability","owner":"solutena","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-17T07:47:37.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-11T21:40:58.916Z","etag":null,"topics":["probability","unity","unitypackage"],"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/solutena.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-12-09T12:10:08.000Z","updated_at":"2024-12-31T03:25:39.000Z","dependencies_parsed_at":"2023-12-09T13:25:39.834Z","dependency_job_id":"db0b8732-fcae-496a-9b7a-1474dcc59992","html_url":"https://github.com/solutena/Probability","commit_stats":null,"previous_names":["solutena/probability"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solutena%2FProbability","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solutena%2FProbability/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solutena%2FProbability/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solutena%2FProbability/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/solutena","download_url":"https://codeload.github.com/solutena/Probability/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241335516,"owners_count":19946068,"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":["probability","unity","unitypackage"],"created_at":"2024-11-12T20:31:27.659Z","updated_at":"2026-04-28T15:37:25.906Z","avatar_url":"https://github.com/solutena.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Probability\u003cT\u003e\n\n가중치 확률을 구현하기 위한 클래스입니다.\n\n# 설치\n\n![image](https://github.com/user-attachments/assets/b391a76a-22e7-41c0-b2e1-cf593f763b4f)\n\n1. URL 복사\n\n![image](https://github.com/user-attachments/assets/f4060f1d-94aa-4a49-b001-e7a5e01316e1)\n\n2. 패키지 매니저에서 Add Package from Git URL 선택\n   \n![image](https://github.com/user-attachments/assets/0e53e578-f0c1-4399-893f-c3028ee6befe)\n\n3.  복사한 URL로 설치\n\n## Add\n\n```csharp\nProbability\u003cstring\u003e probability = new Probability\u003cstring\u003e();\nprobability.Add(\"A\", 1);\nprobability.Add(\"B\", 2);\nprobability.Add(\"C\", 3);\nprobability.Add(\"D\", 4);\nstring random = probability.Get();\n```\n\n첫번째 인자에 타겟을,\n\n두번째 인자에 확률을 추가하고\n\n`Get` 함수를 통해 랜덤한 타겟을 가져옵니다.\n\n## Get\n\n`Get()` 함수로 확률에 기반한 랜덤한 타겟을 가져옵니다.\n\n`Get(seed)` 시드값을 넣어 항상 같은 결과를 얻을 수 있습니다.\n\nGet 함수는 `probability`값을 모두 더한 총합에서 `probability`값의 가중치를 가집니다.\n\n`\"A\"` : 10%\n\n`\"B\"` : 20%\n\n`\"C\"` : 30%\n\n`\"D\"` : 40%\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolutena%2Fprobability","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolutena%2Fprobability","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolutena%2Fprobability/lists"}