{"id":21813459,"url":"https://github.com/youpong/randomengine","last_synced_at":"2025-10-09T16:47:17.910Z","repository":{"id":264435381,"uuid":"888583141","full_name":"youpong/RandomEngine","owner":"youpong","description":"A practical guide to implementing a custom random number generator and integrating it with std::uniform_int_distribution.","archived":false,"fork":false,"pushed_at":"2025-01-18T08:55:45.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T09:26:10.780Z","etag":null,"topics":["cpp-standard-library","cpp20","dockerfile"],"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/youpong.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":"2024-11-14T16:41:47.000Z","updated_at":"2025-01-18T08:55:46.000Z","dependencies_parsed_at":"2025-01-08T21:01:38.315Z","dependency_job_id":null,"html_url":"https://github.com/youpong/RandomEngine","commit_stats":null,"previous_names":["youpong/randomengine"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/youpong/RandomEngine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youpong%2FRandomEngine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youpong%2FRandomEngine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youpong%2FRandomEngine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youpong%2FRandomEngine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/youpong","download_url":"https://codeload.github.com/youpong/RandomEngine/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youpong%2FRandomEngine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001780,"owners_count":26083173,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"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":["cpp-standard-library","cpp20","dockerfile"],"created_at":"2024-11-27T14:29:26.463Z","updated_at":"2025-10-09T16:47:17.892Z","avatar_url":"https://github.com/youpong.png","language":"C++","readme":"# RandomEngine\n\nProvides a practical demonstration of how to implement a custom random number\ngenerator and use it in conjunction with the standard `std::uniform_int_distribution`.\nThis also includes a Dockerfile for building a docker environment.\n\n## Requisite\n\nwritten in C++20, you will need a recent version of a C++ compiler and C++ standard \nlibrary. \n\n## Tested Environment\n\nWe are testing in the following environments:\n\n* macOS 15.2\n  * Xcode 16.2 (using the bundled Apple Clang 16.0.0)\n* Ubuntu 24.04.1 LTS\n  * GCC 13.3.0\n  * Clang 18.1.3\n\n## How to Build\n\n```\n$ make main\n```\n\n## How to Run\n\nDisplays the results of rolling the dice 10 times.\n\n```\n$ make run\n```\n\n## Setting Up a Docker Environment for Build/Run\n\nThis project supports building and testing within a Docker container. The\nprocess mirrors the standard procedure, ensuring consistency across environments.\n\n### Key Points\n- The Docker image is based on `Ubuntu`.\n- Building and testing inside the container follow the same steps as running \n  directly on a native system.\n\n### Steps\n\n#### Build Docker image `rnd`\n\n```\n$ docker build -t rnd .\n```\n\n#### Create and run a new container from an image\n\n```\n$ docker run --rm -it -v $PWD:/rnd -w /rnd rnd\n```\n\n## References\n\n* \"Linear congruential generator.\" *Wikipedia*. 2024. [https://en.wikipedia.org/wiki/Linear_congruential_generator#cite_note-LEcuyer99-10](https://en.wikipedia.org/wiki/Linear_congruential_generator#cite_note-LEcuyer99-10).\n\n* 江添亮. *江添亮のC++入門*. ドワンゴ, 2019, Kindle版, 39.3 乱数分布.\n\n## LICENSE\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoupong%2Frandomengine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoupong%2Frandomengine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoupong%2Frandomengine/lists"}