Skip to content

Instantly share code, notes, and snippets.

@netroy
Created September 9, 2015 09:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save netroy/963e0e1dfe9dffcfb816 to your computer and use it in GitHub Desktop.
Save netroy/963e0e1dfe9dffcfb816 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"math/rand"
"time"
)
// Shamelessly borrowed from docker
var adjectives = []string{
"admiring",
"adoring",
"agitated",
"angry",
"backstabbing",
"berserk",
"boring",
"clever",
"cocky",
"compassionate",
"condescending",
"cranky",
"desperate",
"determined",
"distracted",
"dreamy",
"drunk",
"ecstatic",
"elated",
"elegant",
"evil",
"fervent",
"focused",
"furious",
"gloomy",
"goofy",
"grave",
"happy",
"high",
"hopeful",
"hungry",
"insane",
"jolly",
"jovial",
"kickass",
"lonely",
"loving",
"mad",
"modest",
"naughty",
"nostalgic",
"pensive",
"prickly",
"reverent",
"romantic",
"sad",
"serene",
"sharp",
"sick",
"silly",
"sleepy",
"stoic",
"stupefied",
"suspicious",
"tender",
"thirsty",
"trusting",
}
var wunderkinder = []string{
"adam_renklint",
"adam_schroder",
"aditya",
"andrei",
"anthony",
"antonio",
"arno",
"ben_braun",
"bence",
"benedikt",
"benjamin",
"bernd",
"bruno",
"candy",
"cesar",
"chad",
"charlette",
"chris",
"daniel",
"daniel_molnar",
"dennis",
"dom_davies",
"dom_petrick",
"duncan",
"eran",
"eric",
"franziska",
"hannes",
"hans",
"herr_reber",
"jenny",
"joakim",
"julius",
"justin",
"katherine",
"katya",
"keturah",
"kristijan",
"loek",
"marcel",
"marcel_weiher",
"marco",
"marcus",
"martin",
"marvin",
"meg",
"misha",
"nathan",
"polly",
"raymond",
"rebecca",
"rotem",
"ryan",
"sebastian",
"simon",
"stefan",
"steffen",
"thomas",
"timo",
"timothy",
"vikram",
"zander",
}
func main() {
source := rand.NewSource(time.Now().UnixNano())
r := rand.New(source)
adjective := adjectives[r.Intn(len(adjectives))]
wunderkind := wunderkinder[r.Intn(len(wunderkinder))]
fmt.Printf("%s_%s", adjective, wunderkind)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment