Created
June 5, 2020 10:05
-
-
Save PeteGabriel/4a1ba6e096d32f59f5c7c42b80d86138 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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