{"id":17962616,"url":"https://github.com/eneko/random","last_synced_at":"2025-08-10T08:12:46.820Z","repository":{"id":136800902,"uuid":"148872479","full_name":"eneko/Random","owner":"eneko","description":"A random command line tool to do random stuff 🎲","archived":false,"fork":false,"pushed_at":"2021-01-17T17:18:27.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-03T19:21:49.253Z","etag":null,"topics":["cli","command-line-tool","random","randomize","stdin","swift","swiftpm","terminal"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/eneko.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":"2018-09-15T05:24:45.000Z","updated_at":"2019-05-02T21:37:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"981669b8-bbe6-4f35-a6a2-035a2c5164dd","html_url":"https://github.com/eneko/Random","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/eneko/Random","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eneko%2FRandom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eneko%2FRandom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eneko%2FRandom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eneko%2FRandom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eneko","download_url":"https://codeload.github.com/eneko/Random/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eneko%2FRandom/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269693593,"owners_count":24460248,"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-08-10T02:00:08.965Z","response_time":71,"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":["cli","command-line-tool","random","randomize","stdin","swift","swiftpm","terminal"],"created_at":"2024-10-29T11:19:54.449Z","updated_at":"2025-08-10T08:12:46.787Z","avatar_url":"https://github.com/eneko.png","language":"Swift","readme":"# Random\nA random command line tool to do random stuff\n\n![](https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSttlmqumySvHGWVY7vOz3Axx3FBYyNDqDIkLpRmNJJx20ZpZuF)\n\n## Usage\n\n### Pick Command\nPick one from multiple options passed in as parameters or via standard input (`stdin`).\n\nFrom parameters:\n```\n$ random pick 🍊 🍎 🍍 🍇\n🍍\n```\n\nFrom `stdin`:\n```\n$ echo 🍊 🍎 🍍 🍇 | random pick\n🍎\n```\n\nCombined parameters and `stdin`:\n```\n$ echo 🍊 🍎 | random pick 🍍 🍇\n🍇\n```\n\nWhen `stdin` contains multiple lines, a random line is selected:\n```\n$ ls | random pick\nPackage.swift\n$ ls -la | random pick\n-rw-r--r--   1 enekoalonso  staff  1069 Sep 14 22:27 LICENSE\n```\n\nIf a single word is passed in, a random character is selected:\n```\n$ random pick eneko\ne\n```\n\n### Shuffle Command\nShuffle  options passed in as parameters or via standard input in random order (`stdin`).\n\n```\n$ random shuffle 🍊 🍎 🍍 🍇\n🍍\n🍎\n🍊\n🍇\n```\n\n\n### Dice Command\nThrow one or multiple dice.\n\n```\n$ random dice\n2\n```\n\nMultiple throws:\n```\n$ random dice -n 6\n1\n6\n6\n1\n6\n3\n```\n\n## Installation\nNote: Requires Swift 4.2, works on Mac and Linux\n\n### With Homebrew\n```\n$ brew install eneko/tap/random\n```\n\n### From Source\n```\n$ git clone https://github.com/eneko/Random.git\n$ cd Random\n$ make\n```\n\n### Download Binary\n```\n$ curl -Ls https://github.com/eneko/Random/releases/download/latest/random.macos.zip -o /tmp/random.macos.zip\n$ unzip -j -d /usr/local/bin /tmp/random.macos.zip \n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feneko%2Frandom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feneko%2Frandom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feneko%2Frandom/lists"}