forked from an/flokati
markov
This commit is contained in:
parent
75b18d7107
commit
fac04ea3dc
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue