{"id":20559858,"url":"https://github.com/cxw42/games-dice-tester","last_synced_at":"2026-06-09T14:31:31.075Z","repository":{"id":87958234,"uuid":"178705260","full_name":"cxw42/Games-Dice-Tester","owner":"cxw42","description":"Statistical tests for random dice-rolling programs","archived":false,"fork":false,"pushed_at":"2019-03-31T20:12:55.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-06T07:46:15.487Z","etag":null,"topics":["dice","dice-rolling-statistics","dice-rolls","perl","random-number","random-number-distributions","random-numbers","statistics"],"latest_commit_sha":null,"homepage":null,"language":"Perl","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/cxw42.png","metadata":{"files":{"readme":"README","changelog":"Changes","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"support/readme.pl","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-31T15:18:45.000Z","updated_at":"2019-03-31T20:12:56.000Z","dependencies_parsed_at":"2023-05-22T03:00:29.441Z","dependency_job_id":null,"html_url":"https://github.com/cxw42/Games-Dice-Tester","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cxw42/Games-Dice-Tester","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxw42%2FGames-Dice-Tester","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxw42%2FGames-Dice-Tester/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxw42%2FGames-Dice-Tester/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxw42%2FGames-Dice-Tester/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cxw42","download_url":"https://codeload.github.com/cxw42/Games-Dice-Tester/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxw42%2FGames-Dice-Tester/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34112225,"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":["dice","dice-rolling-statistics","dice-rolls","perl","random-number","random-number-distributions","random-numbers","statistics"],"created_at":"2024-11-16T03:52:26.324Z","updated_at":"2026-06-09T14:31:31.055Z","avatar_url":"https://github.com/cxw42.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"NAME\n    Games::Dice::Tester - Statistical tests of random-dice-rolling programs\n\n    Various statistical tests for use with dice-rolling programs.\n\nWHAT THIS MODULE IS NOT\n    A way to tell you whether your random-number generator is truly random!\n\nEXPORT\n    Nothing by default; \":all\" for everything; otherwise, any of the functions\n    listed below.\n\nFUNCTIONS\n  chi_squared\n    Compute the chi-squared statistic V.  Usage:\n\n        my ($chi_squared, $df) = chi_squared_test(observed=\u003e[...], expected=\u003e[...]);\n\n    where the \"observed\" and \"expected\" arrays are the number of occurrences\n    in each category.\n\n    As a shorthand for the common case of a fair die, you can pass a scalar\n    for \"expected\".  The \"expected\" array will then be filled with copies of\n    that value equal in number to the size of the \"observed\" array.\n\n    As yet another alternative, you can call\n\n        my ($chi_squared, $df) = chi_squared_test(generator=\u003esub { ... });\n\n    where \"generator\", when called, returns the next \"($observed, $expected)\"\n    pair.  When the generator returns \"undef\", the loop stops.\n\n    Returns the chi-squared statistic.  In list context, also returns the\n    number of degrees of freedom.\n\n    Original version by  Lukas Atkinson\n    \u003chttps://stackoverflow.com/users/1521179/amon\u003e, posted here\n    \u003chttps://stackoverflow.com/a/21205042/2877364\u003e.  Modified by CXW.\n\n  chi_squared_test\n    Return the probability that a given observed distribution was produced by\n    a random process with the given expected distribution.  Parameters are as\n    \"chi_squared\".\n\n    If I am reading Knuth correctly, a random sequence should generally have\n    probabilities on the range (0.1, 0.9).  TAOCP 3e, vol. 2, p. 47.\n\n    Original version by  Lukas Atkinson\n    \u003chttps://stackoverflow.com/users/1521179/amon\u003e, posted here\n    \u003chttps://stackoverflow.com/a/21205042/2877364\u003e.  Modified by CXW.\n\n  chi_squared_maybe_ok\n    Parameters as \"chi_squared_test\".  Returns true iff the chi-squared result\n    is in the range (0.1, 0.9).\n\nSEE ALSO\n    *   \u003chttp://blogs.perl.org/users/ovid/2014/01/testing-random-dice-rolls.ht\n        ml\u003e\n\n    *   \u003chttps://www.nu42.com/2014/01/randomness-and-statistical-concepts.html\n        \u003e\n\n    *   \u003chttp://oddgeek.info/code/gdp/\u003e\n\nBUGS\n    Please report any bugs or feature requests through the web interface at\n    \u003chttps://github.com/cxw42/Games-Dice-Tester/issues\u003e.  I will be notified,\n    and then you'll automatically be notified of progress on your bug as I\n    make changes.\n\nSUPPORT\n    You can find documentation for this module with the perldoc command.\n\n        perldoc Games::Dice::Tester\n\n    You can also look for information at:\n\n    *   GitHub (main repository)\n\n        \u003chttps://github.com/cxw42/Games-Dice-Tester\u003e\n\n    *   MetaCPAN\n\n        \u003chttps://metacpan.org/release/Games-Dice-Tester\u003e\n\n    *   CPAN Ratings\n\n        \u003chttps://cpanratings.perl.org/d/Games-Dice-Tester\u003e\n\nLICENSE\n    Copyright 2019 Christopher White.  Some code Copyright 2014 Lukas\n    Atkinson.\n\n    Licensed CC-BY-SA 3.0 \u003chttps://creativecommons.org/licenses/by-sa/3.0/\u003e.\n\n    Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER\n    AND CONTRIBUTORS \"AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. \n    THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR\n    PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY\n    YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR\n    WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL\n    DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF ADVISED\n    OF THE POSSIBILITY OF SUCH DAMAGE.\n\nPOD ERRORS\n    Hey! The above document had some coding errors, which are explained below:\n\n    Around line 72:\n        L\u003c\u003e starts or ends with whitespace\n\n    Around line 124:\n        L\u003c\u003e starts or ends with whitespace\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcxw42%2Fgames-dice-tester","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcxw42%2Fgames-dice-tester","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcxw42%2Fgames-dice-tester/lists"}