{"id":16021939,"url":"https://github.com/kemingy/rule30","last_synced_at":"2025-06-29T10:36:27.324Z","repository":{"id":212124631,"uuid":"606686097","full_name":"kemingy/rule30","owner":"kemingy","description":"Pseudo random number generator with cellular automaton rule 30.","archived":false,"fork":false,"pushed_at":"2025-02-13T10:50:41.000Z","size":48,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T06:32:36.212Z","etag":null,"topics":["cellular-automaton","prng"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kemingy.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":"2023-02-26T08:47:33.000Z","updated_at":"2025-02-13T09:54:58.000Z","dependencies_parsed_at":"2024-10-27T17:17:16.126Z","dependency_job_id":"76ed229d-fa7a-4683-8ef1-4065d6dda6ee","html_url":"https://github.com/kemingy/rule30","commit_stats":{"total_commits":24,"total_committers":1,"mean_commits":24.0,"dds":0.0,"last_synced_commit":"a2b63b4e2db4ff3692630c0201f03d6bb6c76527"},"previous_names":["kemingy/rule30"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kemingy%2Frule30","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kemingy%2Frule30/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kemingy%2Frule30/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kemingy%2Frule30/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kemingy","download_url":"https://codeload.github.com/kemingy/rule30/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243897383,"owners_count":20365572,"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":["cellular-automaton","prng"],"created_at":"2024-10-08T18:06:31.993Z","updated_at":"2025-03-18T03:31:45.647Z","avatar_url":"https://github.com/kemingy.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rule30\n\n[![Rust](https://github.com/kemingy/rule30/actions/workflows/rust.yml/badge.svg)](https://github.com/kemingy/rule30/actions/workflows/rust.yml)\n[![crates.io](https://img.shields.io/crates/v/rule30.svg)](https://crates.io/crates/rule30)\n[![docs.rs](https://docs.rs/rule30/badge.svg)](https://docs.rs/rule30)\n[![PyPI](https://badge.fury.io/py/rule30py.svg)](https://pypi.org/project/rule30py)\n\nPseudo random number generator with cellular automaton rule 30.\n\n## Features\n\n- [x] `no_std`\n- [x] Extend CA for better performance\n\n## Usage\n\n```rust\nuse rule30::prelude::*;\n\n\nfn main() {\n    let mut ca = ExtendedCA::seed_from_u64(42);\n    println!(\"{}\", ca.next_u64());\n}\n```\n\nTo work with `rand` crate:\n\n```rust\nuse rule30::prelude::*;\nuse rand::Rng;\n\n\nfn main() {\n    let mut ca = ExtendedCA::seed_from_u64(42);\n    println!(\"{}\", ca.gen::\u003cf64\u003e());\n}\n```\n\nFor Python binding, check [rule30py](python/)\n\n## Reference\n\n- Wolfram [Rule30](https://reference.wolfram.com/language/tutorial/RandomNumberGeneration.html#830168163)\n- Wolfram [ExtendedCA](https://reference.wolfram.com/language/tutorial/RandomNumberGeneration.html#18361715)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkemingy%2Frule30","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkemingy%2Frule30","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkemingy%2Frule30/lists"}