{"id":19988958,"url":"https://github.com/lodestone/dicebag","last_synced_at":"2025-08-05T18:10:44.842Z","repository":{"id":16648517,"uuid":"19403906","full_name":"lodestone/dicebag","owner":"lodestone","description":"A dice rolling simulation and textual graphing library","archived":false,"fork":false,"pushed_at":"2014-11-29T06:22:43.000Z","size":216,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-12T11:49:27.781Z","etag":null,"topics":["dice-rolling-simulation","dicebag","gaming","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/lodestone.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}},"created_at":"2014-05-03T13:43:08.000Z","updated_at":"2017-03-15T16:06:15.000Z","dependencies_parsed_at":"2022-09-16T09:12:22.037Z","dependency_job_id":null,"html_url":"https://github.com/lodestone/dicebag","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lodestone%2Fdicebag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lodestone%2Fdicebag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lodestone%2Fdicebag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lodestone%2Fdicebag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lodestone","download_url":"https://codeload.github.com/lodestone/dicebag/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241430299,"owners_count":19961633,"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":["dice-rolling-simulation","dicebag","gaming","ruby"],"created_at":"2024-11-13T04:44:51.294Z","updated_at":"2025-03-01T21:42:41.670Z","avatar_url":"https://github.com/lodestone.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"dicebag\n=======\n\nA dice rolling simulation and textual graphing library\n\n\nThis allows me to generate output as follows.\n\nFor a DiceSet:\n\n```ruby\n \u003cDiceSet:\n   @set: [d8=\u003e7, d10=\u003e5, d12=\u003e2, d8=\u003e8, d6=\u003e1]\u003e\n\n \u003e ds=DiceSet.new [d^8, d^10, d^12, d^8]\n \u003e ds.graph\n\n \u003e # OR\n \u003e Dice.roll what: d^6, how_many: 4, keep: 3\n\n```\n\n```\n \n Running 100000 times, taking the top 3, the breakdown of results by value rolled are:\n …………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………\n     3   ( 0.00%)\n     4   ( 0.01%)\n     5   ( 0.03%)\n     6   ( 0.08%)\n     7   ( 0.21%) °\n     8   ( 0.33%) °\n     9   ( 0.69%) °°°\n    10   ( 1.02%) °°°°°\n    11   ( 1.61%) °°°°°°°°\n    12   ( 2.34%) °°°°°°°°°°°\n    13   ( 3.25%) °°°°°°°°°°°°°°°°\n    14   ( 4.25%) °°°°°°°°°°°°°°°°°°°°°\n    15   ( 5.42%) °°°°°°°°°°°°°°°°°°°°°°°°°°°\n    16   ( 6.29%) °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°\n    17   ( 7.41%) °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°\n    18   ( 8.13%) °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°\n    19   ( 8.74%) °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°\n    20   ( 8.91%) °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°\n    21   ( 8.68%) °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°\n    22   ( 8.06%) °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°\n    23   ( 6.98%) °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°\n    24   ( 5.78%) °°°°°°°°°°°°°°°°°°°°°°°°°°°°\n    25   ( 4.41%) °°°°°°°°°°°°°°°°°°°°°°\n    26   ( 3.18%) °°°°°°°°°°°°°°°\n    27   ( 2.14%) °°°°°°°°°°\n    28   ( 1.26%) °°°°°°\n    29   ( 0.56%) °°\n    30   ( 0.19%)\n\n```\n\n Similar Anydice function here: [http://anydice.com/program/25a0](http://anydice.com/program/25a0)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flodestone%2Fdicebag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flodestone%2Fdicebag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flodestone%2Fdicebag/lists"}