From 01fcbeb60da0bff33d5d9f5b870d444cc418a01d Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Thu, 28 Feb 2019 20:12:45 -0500 Subject: Converted to C++ style randomization The logic in rawr::randomSentence with the cuts might be slightly different now but who even knows what's going on there. --- kgramstats.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'kgramstats.h') diff --git a/kgramstats.h b/kgramstats.h index 49fe04e..848af24 100644 --- a/kgramstats.h +++ b/kgramstats.h @@ -9,6 +9,7 @@ #include "identifier.h" #include #include +#include class rawr { public: @@ -19,7 +20,7 @@ class rawr { void setTransformCallback(transform_callback _arg); void setMinCorpora(int _arg); - std::string randomSentence(int maxL) const; + std::string randomSentence(int maxL, std::mt19937& rng) const; private: struct terminator { -- cgit 1.4.1