about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2016-02-07 23:20:56 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2016-02-07 23:20:56 -0500
commited4e289590d53623311ce42e44e873292211f7ab (patch)
tree8848b9cfdec0abd9b127666abf33c4f512a8e7d8
parentba73e189ec5dcd41f6c85e9d52eacae4da0c949e (diff)
downloadrawr-ebooks-ed4e289590d53623311ce42e44e873292211f7ab.tar.gz
rawr-ebooks-ed4e289590d53623311ce42e44e873292211f7ab.tar.bz2
rawr-ebooks-ed4e289590d53623311ce42e44e873292211f7ab.zip
Tweaked the kgram cutting rate again
-rw-r--r--kgramstats.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kgramstats.cpp b/kgramstats.cpp index da8c326..b25c61f 100644 --- a/kgramstats.cpp +++ b/kgramstats.cpp
@@ -557,7 +557,7 @@ std::string kgramstats::randomSentence(int n)
557 break; 557 break;
558 } 558 }
559 559
560 if (next.all == max) 560 if ((next.all == max) && (rand() % 3 == 0))
561 { 561 {
562 cut = true; 562 cut = true;
563 } 563 }