{"id":16309098,"url":"https://github.com/susisu/go-random","last_synced_at":"2025-08-05T09:08:09.616Z","repository":{"id":142257659,"uuid":"609433019","full_name":"susisu/go-random","owner":"susisu","description":"go-random provides generic random number generator interfaces and functions","archived":false,"fork":false,"pushed_at":"2023-03-12T12:46:40.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-24T19:21:40.829Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/susisu/go-random","language":"Go","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/susisu.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-03-04T06:36:33.000Z","updated_at":"2023-03-13T11:14:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"1219ad0e-5294-467d-9ae2-f11c012a8c63","html_url":"https://github.com/susisu/go-random","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/susisu%2Fgo-random","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/susisu%2Fgo-random/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/susisu%2Fgo-random/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/susisu%2Fgo-random/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/susisu","download_url":"https://codeload.github.com/susisu/go-random/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239103009,"owners_count":19582070,"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":[],"created_at":"2024-10-10T21:19:40.461Z","updated_at":"2025-02-16T08:13:29.277Z","avatar_url":"https://github.com/susisu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-random\n\n[![CI](https://github.com/susisu/go-random/workflows/CI/badge.svg)](https://github.com/susisu/go-random/actions?query=workflow%3ACI)\n\ngo-random provides generic random number generator interfaces and functions.\n\n## Usage\n\nUse `go get` to install:\n\n``` shell\ngo get github.com/susisu/go-random\n```\n\ngo-random provides functions for both uint32 and uint64 generators.\nThe functions for each type are exported from separate pacakges, so use the appropriate one for your use case.\n\nHere is an example using the uint64 version:\n\n``` go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"math/rand\"\n\n\trandom \"github.com/susisu/go-random/uint64\"\n)\n\nfunc main() {\n\t// math/rand.Source64 implements the uint64 version of random.Generator\n\tg := rand.NewSource(42).(rand.Source64)\n\t// use go-random to generate random values of variaous numeric types\n\tv := random.Float64(g)\n\tfmt.Printf(\"%f\\n\", v)\n}\n```\n\n## License\n\n[MIT License](http://opensource.org/licenses/mit-license.php)\n\n## Author\n\nSusisu ([GitHub](https://github.com/susisu), [Twitter](https://twitter.com/susisu2413))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsusisu%2Fgo-random","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsusisu%2Fgo-random","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsusisu%2Fgo-random/lists"}