about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2016-02-15 09:31:45 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2016-02-15 09:31:45 -0500
commitfa6efc2e6fb0d11f90c06635766531ec52f2733e (patch)
treecd59175de12991d3edb2e08968b785faa3d89892
parent3e97dc2a169aa7d4ac4c570a78f9d05aa6144e05 (diff)
downloadrawr-ebooks-fa6efc2e6fb0d11f90c06635766531ec52f2733e.tar.gz
rawr-ebooks-fa6efc2e6fb0d11f90c06635766531ec52f2733e.tar.bz2
rawr-ebooks-fa6efc2e6fb0d11f90c06635766531ec52f2733e.zip
Tweaked kgram cut rate some more (it never ends)
-rw-r--r--kgramstats.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kgramstats.cpp b/kgramstats.cpp index 48e4b06..f91ef52 100644 --- a/kgramstats.cpp +++ b/kgramstats.cpp
@@ -432,7 +432,7 @@ std::string kgramstats::randomSentence(int n)
432 if ((rand() % cuts) > (under * under)) 432 if ((rand() % cuts) > (under * under))
433 { 433 {
434 cur.pop_front(); 434 cur.pop_front();
435 cuts--; 435 cuts -= under * under;
436 } else { 436 } else {
437 break; 437 break;
438 } 438 }