{"id":41281157,"url":"https://github.com/plimble/rand","last_synced_at":"2026-01-23T02:51:19.878Z","repository":{"id":28777067,"uuid":"32299577","full_name":"plimble/rand","owner":"plimble","description":"Random Data","archived":false,"fork":false,"pushed_at":"2015-04-30T16:46:45.000Z","size":168,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-21T13:14:31.774Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/plimble.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}},"created_at":"2015-03-16T03:40:15.000Z","updated_at":"2015-04-30T16:46:46.000Z","dependencies_parsed_at":"2022-09-01T23:50:13.296Z","dependency_job_id":null,"html_url":"https://github.com/plimble/rand","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/plimble/rand","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plimble%2Frand","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plimble%2Frand/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plimble%2Frand/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plimble%2Frand/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plimble","download_url":"https://codeload.github.com/plimble/rand/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plimble%2Frand/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28679138,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T01:00:35.747Z","status":"online","status_checked_at":"2026-01-23T02:00:08.296Z","response_time":59,"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":"2026-01-23T02:51:19.302Z","updated_at":"2026-01-23T02:51:19.870Z","avatar_url":"https://github.com/plimble.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"go-randomdata\n==============\n[![Build Status](https://travis-ci.org/Pallinder/go-randomdata.png)](https://travis-ci.org/Pallinder/go-randomdata)\n\nrandomdata is a tiny help suite for generating random data such as \n* first names (male or female)\n* last names\n* full names (male or female) \n* country names (full name or iso 3166.1 alpha-2 or alpha-3)\n* random email address\n* city names\n* American state names (two chars or full)\n* random numbers (in an interval)\n* random paragraphs \n* random bool values\n* postal- or zip-codes formatted for a range of different countries.\n* american sounding addresses / street names\n* silly names - suitable for names of things\n\n### Installation\n```go get github.com/Pallinder/go-randomdata```\n\n### Documentation\nhttp://godoc.org/github.com/Pallinder/go-randomdata\n\n### Usage\n```go\n\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/Pallinder/go-randomdata\"\n)\n\nfunc main() {\n\t// Print a random silly name\n\tfmt.Println(randomdata.SillyName())\n\n\t// Print a male first name\n\tfmt.Println(randomdata.FirstName(randomdata.Male))\n\n\t// Print a female first name\n\tfmt.Println(randomdata.FirstName(randomdata.Female))\n\n\t// Print a last name\n\tfmt.Println(randomdata.LastName())\n\n\t// Print a male name\n\tfmt.Println(randomdata.FullName(randomdata.Male))\n\n\t// Print a female name\n\tfmt.Println(randomdata.FullName(randomdata.Female))\n\n\t// Print a name with random gender\n\tfmt.Println(randomdata.FullName(randomdata.RandomGender))\n\n\t// Print an email\n\tfmt.Println(randomdata.Email())\n\n\t// Print a country with full text representation\n\tfmt.Println(randomdata.Country(randomdata.FullCountry))\n\n\t// Print a country using ISO 3166-1 alpha-2\n\tfmt.Println(randomdata.Country(randomdata.TwoCharCountry))\n\n\t// Print a country using ISO 3166-1 alpha-3\n\tfmt.Println(randomdata.Country(randomdata.ThreeCharCountry))\n\n\t// Print the name of a random city\n\tfmt.Println(randomdata.City())\n\n\t// Print the name of a random american state\n\tfmt.Println(randomdata.State(randomdata.Large))\n\t\n\t// Print the name of a random american state using two chars\n\tfmt.Println(randomdata.State(randomdata.Small))\n\n\t// Print an american sounding street name\n\tfmt.Println(randomdata.Street())\n\t\n\t// Print an american sounding address\n\tfmt.Println(randomdata.Address())\n\n\t// Print a random number \u003e= 10 and \u003c= 20\n\tfmt.Println(randomdata.Number(10, 20))\n\n\t// Print a number \u003e= 0 and \u003c= 20\n\tfmt.Println(randomdata.Number(20))\n\n\t// Print a random float \u003e= 0 and \u003c= 20 with decimal point 3\n\tfmt.Println(Decimal(0, 20, 3))\n\n\t// Print a random float \u003e= 10 and \u003c= 20\n\tfmt.Println(Decimal(10, 20))\n\n\t// Print a random float \u003e= 0 and \u003c= 20\n\tfmt.Println(Decimal(20))\n\n\t// Print a bool\n\tfmt.Println(randomdata.Boolean())\n\t\n\t// Print a paragraph\n\tfmt.Println(randomdata.Paragraph())\n\t\n\t// Print a postal code \n\tfmt.Println(randomdata.PostalCode(\"SE\"))\n\n\t// Print a set of random numbers as a string\n\tfmt.Println(randomdata.StringNumber(2,\"-\"))\n\t\n\t// Print a valid random IPv4 address\n\tfmt.Println(randomdata.IpV4Address())\t\n}\n\n```\n\n### Contributors\n* https://github.com/jteeuwen\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplimble%2Frand","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplimble%2Frand","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplimble%2Frand/lists"}