void out() { FILE* file = fopen("data.txt","w"); TRandom3* random = new TRandom3(); for (int i = 0; i < 10; i++) { double x = random->Gaus(0,0.5); // normální rozdělení, mu = 0, sigma = 0.5 double y = random->Gaus(2.5,1); // mu = 2.5, sigma = 1 fprintf(file,"%f\t%f\n", x, y); } fclose(file); }