#include #include using namespace std; void writeData() { ofstream file("output.data"); for (int i=0; i<100; ++i){ float rnd = gRandom->Rndm(); file << rnd << endl; } file.close(); }