Fix not re-randomizing before a nounPhrase() call
This commit is contained in:
parent
965a84725f
commit
78b3b2313a
|
@ -62,6 +62,11 @@ func (g *generic) Hack() (string, error) {
|
||||||
sb.WriteString(v2)
|
sb.WriteString(v2)
|
||||||
sb.WriteString(" ")
|
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)
|
np2, err := g.nounPhrase(definite, hasAdj, plural, compound)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
|
|
Loading…
Reference in New Issue