From 78b3b2313aae1259572b41d1b2145657d21cab13 Mon Sep 17 00:00:00 2001 From: Zorchenhimer Date: Sun, 14 Feb 2021 21:18:30 -0500 Subject: [PATCH] Fix not re-randomizing before a nounPhrase() call --- generic.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/generic.go b/generic.go index bf2cb3f..fe0bb49 100644 --- a/generic.go +++ b/generic.go @@ -62,6 +62,11 @@ func (g *generic) Hack() (string, error) { sb.WriteString(v2) sb.WriteString(" ") + definite = rand.Int() % 2 == 0 + hasAdj = rand.Int() % 2 == 0 + plural = rand.Int() % 2 == 0 + compound = rand.Int() % 2 == 0 + np2, err := g.nounPhrase(definite, hasAdj, plural, compound) if err != nil { return "", err