diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2014-04-22 17:19:08 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2014-04-22 17:19:08 -0400 |
commit | b71552ea3f8237012fe5677385df1c3534405121 (patch) | |
tree | b2218296c624286867e8ed70a54ca09d29c7e491 | |
parent | 84cb28c546f9ff6a867d01ad89b6b57070520d44 (diff) | |
download | rawr-ebooks-b71552ea3f8237012fe5677385df1c3534405121.tar.gz rawr-ebooks-b71552ea3f8237012fe5677385df1c3534405121.tar.bz2 rawr-ebooks-b71552ea3f8237012fe5677385df1c3534405121.zip |
Modified kgram shortening rate
-rw-r--r-- | kgramstats.cpp | 2 |
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 { |