{"id":21306565,"url":"https://github.com/techmdw/randish","last_synced_at":"2025-03-15T19:43:52.383Z","repository":{"id":192572918,"uuid":"656807114","full_name":"TechMDW/randish","owner":"TechMDW","description":"Randish is a thread-safe random number generator library in Go, providing distinct random sequences with a unique seeding approach based on a mix of system and context-specific elements. It offers singleton and array-based pseudo-random number generation, ensuring high performance and randomness across different contexts and systems.","archived":false,"fork":false,"pushed_at":"2023-06-22T12:13:06.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-07T06:57:08.603Z","etag":null,"topics":["go","golang","pseudo-random","random-seed"],"latest_commit_sha":null,"homepage":"","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/TechMDW.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}},"created_at":"2023-06-21T17:20:18.000Z","updated_at":"2023-09-24T14:18:31.000Z","dependencies_parsed_at":"2023-09-05T03:07:29.337Z","dependency_job_id":null,"html_url":"https://github.com/TechMDW/randish","commit_stats":null,"previous_names":["techmdw/randish"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechMDW%2Frandish","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechMDW%2Frandish/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechMDW%2Frandish/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechMDW%2Frandish/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TechMDW","download_url":"https://codeload.github.com/TechMDW/randish/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243784099,"owners_count":20347409,"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":["go","golang","pseudo-random","random-seed"],"created_at":"2024-11-21T16:24:34.197Z","updated_at":"2025-03-15T19:43:52.362Z","avatar_url":"https://github.com/TechMDW.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Randish\n\n`Randish` is a Go package that provides pseudo-random number generators which are unique and thread-safe.\n\nDo not use this for cryptography! If you need a package for that purpose, please use the `crypto/rand` package instead.\n\n## Features\n\n- `Rand()`: Generates a new pseudo-random number generator that is initialized with a unique seed value.\n- `RandS()`: Singleton and thread-safe variant of the `Rand()` function. Returns a globally unique instance of a pseudo-random number generator.\n- `RandSA()`: Initializes an array of pseudo-random number generators and returns one from the array using pseudo-random selection.\n- `Seed()`: Function that generates a seed for pseudo-random number generation using various system and context-specific elements.\n\n## Getting Started\n\n### Prerequisites\n\n- Go 1.7 or later\n\n### Installation\n\n1. Download `randish` using the go get command:\n   ```\n   go get github.com/TechMDW/randish\n   ```\n2. Import `randish` in your code:\n   ```go\n   import \"github.com/TechMDW/randish\"\n   ```\n3. Use the functions as needed.\n\n## Usage\n\nHere is an example of how to use `randish` in your Go code:\n\n```go\npackage main\n\nimport (\n    \"github.com/TechMDW/randish\"\n)\n\nfunc main() {\n    // Generate a new random number generator\n    //\n    // Returns the *rand.Rand from \"math/rand\" package\n    r := randish.Rand()\n\n    // Generate a random number\n    num := r.Int()\n\n    println(num)\n}\n```\n\n## TODO\n\n- [x] Write README\n- [ ] Version control\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## Contact\n\nMaintained by @TechMDW - contact@techmdw.com - Feel free to contact us if you have any questions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechmdw%2Frandish","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechmdw%2Frandish","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechmdw%2Frandish/lists"}