{ ofstream outfile("my_data.txt"); delete gRandom; gRandom = new TRandom(123456); // Setting the seed for(int i=0; i<1000; ++i){ double a=gRandom->Gaus(5, 0.5); outfile << a << "\n"; double b=gRandom->Gaus(11, 1) ; outfile << b << "\n"; double c=gRandom->Gaus(17, 0.3); outfile << c << "\n"; } }