#include "statistics.h" using namespace std; void write_data(const char *filename, unsigned int N, unsigned int M) { srand(time(0)); ofstream out; out.open(filename); for (int i = 0; i < N; i++) { out << rand() % (M+1) << endl; } out.close(); }