{"id":20725126,"url":"https://github.com/andrewfrench/rand","last_synced_at":"2025-10-05T13:40:12.298Z","repository":{"id":57505876,"uuid":"225240570","full_name":"andrewfrench/rand","owner":"andrewfrench","description":"Applied randomness.","archived":false,"fork":false,"pushed_at":"2023-10-04T04:28:54.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T08:50:22.806Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrewfrench.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-12-01T22:29:50.000Z","updated_at":"2023-06-18T01:43:34.000Z","dependencies_parsed_at":"2023-10-04T12:27:17.083Z","dependency_job_id":null,"html_url":"https://github.com/andrewfrench/rand","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andrewfrench/rand","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewfrench%2Frand","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewfrench%2Frand/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewfrench%2Frand/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewfrench%2Frand/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrewfrench","download_url":"https://codeload.github.com/andrewfrench/rand/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewfrench%2Frand/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278464314,"owners_count":25991176,"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-05T02:00:06.059Z","response_time":54,"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":[],"created_at":"2024-11-17T04:17:31.775Z","updated_at":"2025-10-05T13:40:12.265Z","avatar_url":"https://github.com/andrewfrench.png","language":"Go","readme":"# rand\n\nA random string and number generation utility.\n\nBy default, `rand` will output an eight-character string containing characters `a-z0-9`. If any of the source modifiers `-l`, `-u`, `-n`, or `-s` are specified, the source will only include the character types requested. Hide the output with `-b`, which copies the output to the clipboard. The length of the output string can be specified using `-c` without altering the character source.\n\nIn password mode (`-p` or `--password`), `rand` will generate a 32-character string from all sources. This mode is equivalent to `rand -lunsbc32`. Password mode will override all other modifiers and send the output to the clipboard for security.\n\n### Usage\n\n`rand [flags]`\n\n#### Examples\n\n```\n$ rand\n6agqlqrl\n```\n\n```\n$ rand -luns\nF##iPSJt\n```\n\n```\n$ rand -nuc20\nQ1XH3E6EQ4A0EHEKUVDZ\n```\n\n```\n$ rand -c3\nw1p\n```\n\n```\n$ rand -p\nCopied value to clipboard.\n```\n\n#### Flags\n\n`-h`, `--help`       help for rand\n\n`-c`, `--len int`    sets the length, in characters, of the output (default 8)\n\n`-l`, `--lowers`     include lowercase letters a-z\n\n`-n`, `--numbers`    include numerals 0-9\n\n`-p`, `--password`   generate a password string\n\n`-s`, `--specials`   include special characters like !, @, and #\n\n`-u`, `--uppers`     include uppercase letters A-Z\n\n`-b`, `--clipboard`  copy the output to the clipboard \n\n### Build\n\n```sh\nmake build\n```\n\n### Install\n\nIf the repository is cloned locally:\n\n```sh\nmake install\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewfrench%2Frand","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewfrench%2Frand","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewfrench%2Frand/lists"}