Skip to content

Instantly share code, notes, and snippets.

@PeteGabriel
Created June 5, 2020 10:05
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 PeteGabriel/4a1ba6e096d32f59f5c7c42b80d86138 to your computer and use it in GitHub Desktop.
Save PeteGabriel/4a1ba6e096d32f59f5c7c42b80d86138 to your computer and use it in GitHub Desktop.
import (
"fmt"
"github.com/goombaio/namegenerator"
"math/rand"
"time"
)
func main() {
seed := time.Now().UTC().UnixNano()
nameGenerator := namegenerator.NewNameGenerator(seed)
fmt.Printf("%d%s", rand.Intn(100), nameGenerator.Generate())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment