#define __STDC_FORMAT_MACROS
#include <inttypes.h>
+#include <cstdlib>
#include <string.h>
*/
const ModelAction * Node::get_read_from_past() const
{
- if (read_from_past_idx < read_from_past.size())
- return read_from_past[read_from_past_idx];
+ if (read_from_past_idx < read_from_past.size()) {
+ int random_index = rand() % read_from_past.size();
+ return read_from_past[random_index];
+ }
+// return read_from_past[read_from_past_idx];
else
return NULL;
}