about summary refs log tree commit diff stats
path: root/kgramstats.cpp
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2014-04-22 17:19:08 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2014-04-22 17:19:08 -0400
commitb71552ea3f8237012fe5677385df1c3534405121 (patch)
treeb2218296c624286867e8ed70a54ca09d29c7e491 /kgramstats.cpp
parent84cb28c546f9ff6a867d01ad89b6b57070520d44 (diff)
downloadrawr-ebooks-b71552ea3f8237012fe5677385df1c3534405121.tar.gz
rawr-ebooks-b71552ea3f8237012fe5677385df1c3534405121.tar.bz2
rawr-ebooks-b71552ea3f8237012fe5677385df1c3534405121.zip
Modified kgram shortening rate
Diffstat (limited to 'kgramstats.cpp')
-rw-r--r--kgramstats.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kgramstats.cpp b/kgramstats.cpp index 327752b..2321b11 100644 --- a/kgramstats.cpp +++ b/kgramstats.cpp
@@ -105,7 +105,7 @@ vector<string> kgramstats::randomSentence(int n)
105 { 105 {
106 for (int i=0; i<cur.size(); i++) 106 for (int i=0; i<cur.size(); i++)
107 { 107 {
108 if ((rand() % 3) != 0) 108 if ((rand() % 3) == 0)
109 { 109 {
110 cur.pop_front(); 110 cur.pop_front();
111 } else { 111 } else {