package generator import ( "math/rand/v2" ) var keys []string = []string{ "octo", "cool", "whip", "keys", "cats", "part", "rate", "face", "lard", "larp", "dogs", "cash", "city", "cold", "desk", "down", "dirt", "long", "mean", "news", "only", "open", "year", "wood", "wing", "work", "wash", "vote", "onyx", } func Generate(n int) (code string) { codeLen := n start := rand.IntN(len(keys)) for i := range codeLen { code += keys[(start+i)%len(keys)] if i != codeLen-1 { code += "-" } } return }