Re: TRandom->Rndm

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Tue, 26 Sep 2006 12:04:47 +0200


Hi Sophie,

Let me repeat, you do not have to use TRandom2::Rndm. TH2::GetRandom2 will automatically call the default generator (ie TRandom3). Just call GetRandom2.

Rene Brun

Hengtong Ding wrote:
> Hi Sophie,
> You can use the better one Double_t TRandom3::Rndm(Int_t),
>
> but for the random numbers sampling from two dimension histograms,
>
> anyone knows a better way to avoid the defects Sophie mentioned?
>
> cheers,
> hengtong
>
>> Hi
>> there is this comment in
>> double TRandom::Rndm(int)
>>
>> Note that this is a generator which is known to have defects
>> (the lower random bits are correlated) and therefore should NOT be
>> used in any statistical study.
>>
>> in this comment also true for :
>>
>> TH2::GetRandom2(double&, double&)
>>
>> thanks
>> Sophie
>>
>>
>>
>
>
Received on Tue Sep 26 2006 - 12:04:55 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:01 MET