Re: TRandom::Sphere

From: Rene Brun <brun_at_pcroot.cern.ch>
Date: Thu, 25 Aug 2005 19:09:23 +0200 (MEST)


Hi Alessandro,

Thanks for this remark. Now fixed in CVS. With your version do

   gRandom = new TRandom3

Rene Brun

On Thu, 25 Aug 2005, Alessandro
Thea wrote:

> Hi everybody,
> there is something strange in TRandom::Sphere.
> To get the three random numbers used in the generation, Sphere calls
> gRandom->Rndm() instead of Rndm() as done in all the other TRandom methods.
> Is there a reason for that?
>
> I'm reporting because we had some problems in the randome number sequence
> control when using a TRandom that is not gRandom.
> Here a silly example:
>
> rndm = new TRandom3;
> rndm->SetSeed(1234567);
> rndm->Sphere(x,y,z); // gRandom is used here instead of rndm
>
> Thanks,
> Alessandro
>
>
Received on Thu Aug 25 2005 - 19:09:29 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:12 MET