{ TNtuple *n1 = new TNtuple("n1","a n-tuple","x:y:z:alpha:beta:gamma"); TRandom3 rnd; float var[6]; for(int i=0;i<10000;i++) { var[0] = rnd.Uniform(0.,1); var[1] = rnd.Gaus(0.,1.); var[2] = rnd.Exp(-1.); var[3] = var[0]*var[1]; var[4] = var[0]*var[2]; var[5] = var[0]*var[1]*var[2]; n1->Fill(var); } }