diff options
-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 { |