This commit is contained in:
an 2019-08-24 14:44:52 +02:00
parent 75b18d7107
commit fac04ea3dc
1 changed files with 3 additions and 0 deletions

View File

@ -217,6 +217,9 @@ func (c *MarkovChain) Generate(n int, in string) string {
break break
}*/ }*/
p.Shift(next) p.Shift(next)
if rand.Intn(100) < n {
break
}
} }
if len(words) > 0 { if len(words) > 0 {
break break