I have defined a function, “fun”. Based on this function, a histogram is filled by
h1_func->FillRandom("fun",1000000);
While, if a histogram is filled by the random number of this function like this,
for(int i=0;i<1000000;i++){
h1_sample->Fill(func->GetRandom());
}
the histogram h1_sample is different from h1_func.
Does any one know how it happens? Thanks in advance.
BTW, my code is based on ROOT Version: 6.16/00.