{"id":16211020,"url":"https://github.com/duckboss/tinymtcs","last_synced_at":"2025-10-08T16:05:06.881Z","repository":{"id":154810945,"uuid":"153603722","full_name":"DuckBoss/TinyMTCS","owner":"DuckBoss","description":"C#/C-Sharp Port of the TinyMT Project (Tiny Mersenne Twister)","archived":false,"fork":false,"pushed_at":"2023-07-27T02:56:29.000Z","size":28,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T16:03:08.387Z","etag":null,"topics":["mersenne-twister","random-number-generators","tinymt"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DuckBoss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License.txt","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":"2018-10-18T10:06:34.000Z","updated_at":"2022-04-02T03:23:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"2a3d6346-7507-4e34-9601-c3f4ea564c9c","html_url":"https://github.com/DuckBoss/TinyMTCS","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DuckBoss/TinyMTCS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DuckBoss%2FTinyMTCS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DuckBoss%2FTinyMTCS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DuckBoss%2FTinyMTCS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DuckBoss%2FTinyMTCS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DuckBoss","download_url":"https://codeload.github.com/DuckBoss/TinyMTCS/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DuckBoss%2FTinyMTCS/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278972327,"owners_count":26078019,"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-08T02:00:06.501Z","response_time":56,"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":["mersenne-twister","random-number-generators","tinymt"],"created_at":"2024-10-10T10:45:20.477Z","updated_at":"2025-10-08T16:05:06.875Z","avatar_url":"https://github.com/DuckBoss.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TinyMTCS\nC#/C-Sharp (32/64-bit) Port of the TinyMT Project from RobertGBryan's VC++ port (who ported it to VC++ from the original authors Saito/Matsumoto).\n\n## TinyMTCS - Tiny Mersenne Twister C-Sharp\nThis is both a 32-bit and 64-bit implementation of the TinyMT project. It is a 2^(127)-1 period PRNG.\n\n## About TinyMTCS\nThis implementation is a direct C# port of the VS++ port by \u003ca href=\"https://github.com/RobertGBryan\"\u003eRobertGBryan\u003c/a\u003e. \u003cbr\u003e\nRobertGBryan ported the original C based TinyMT project by Saito and Matsumoto from 2011 to VS++. \u003cbr\u003e\nI then ported RobertGBryan's VC++ port to C#/C-Sharp. \u003cbr\u003e\n\nFor more information on TinyMT(Saito/Matsumoto), visit : \u003cbr\u003e\n\u003ca  href=\"http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/TINYMT/index.html\"\u003ehttp://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/TINYMT/index.html\u003c/a\u003e. \u003cbr\u003e\nFor more information on TinyMTCPP (RobertGBryan), visit : \u003cbr\u003e\n\u003ca href=\"https://github.com/RobertGBryan/TinyMTCPP\"\u003e https://github.com/RobertGBryan/TinyMTCPP\u003c/a\u003e \u003cbr\u003e\n\n## Usage Example\n- 32-Bit Example:\n```\nusing TinyMTCS;\n\n//default values...\npublic static UInt32 Seed_32 = 1;\npublic static UInt32 Mat1_32 = 0x8f7011ee;\npublic static UInt32 Mat2_32 = 0xfc78ff1f;\npublic static UInt32 TMat_32 = 0x3793fdff;\n\npublic static void Main(string[] args)\n{  \n  //Initialize the TinyMT32 class and pass through variables...\n  TinyMT32 TMT32 = new TinyMT32(Seed_32, Mat1_32, Mat2_32, TMat_32);\n  UInt32 result_32 = TMT32.GetRandInt();\n  \n  //Print result...\n  Console.WriteLine(result_32);\n}\n```\n- 64-Bit Example:\n```\nusing TinyMTCS;\n\n//default values...\npublic static UInt64 Seed_64 = 1;\npublic static UInt32 Mat1_64 = 0xfa051f40;\npublic static UInt32 Mat2_64 = 0xffd0fff4;\npublic static UInt64 TMat_64 = 0x58d02ffeffbfffbc;\n\npublic static void Main(string[] args)\n{  \n  //Initialize the TinyMT64 class and pass through variables...\n  TinyMT64 TMT64 = new TinyMT64(Seed_64, Mat1_64, Mat2_64, TMat_64);\n  UInt64 result_64 = TMT64.GetRandInt();\n  \n  //Print result...\n  Console.WriteLine(result_64);\n}\n```\n\n## Key Features\n- The periods of generated sequences are 2^(127)-1.\n- The size of internal state space is 127 bits.\n- The state transition function is F2-linear.\n- The output function is not F2-linear.\n- TinyMTDC generates distinct parameter sets for TinyMT.\n- TinyMTDC can generate a large number of parameter sets. (over 2^(32) x 2^(16))\n- Parameter generation of TinyMTDC is fast.\n\n## Important Notes\n- TinyMTCS requires the compiler to compile unsafe code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduckboss%2Ftinymtcs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduckboss%2Ftinymtcs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduckboss%2Ftinymtcs/lists"}