From: Alessandro Thea <>
Date: Thu, 25 Aug 2005 17:49:22 +0200

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->Sphere(x,y,z); // gRandom is used here instead of rndm



Alessandro Thea Ph.D. Student Dipartimento di Fisica dell'Universita' di Genova and Istituto Nazionale di Fisica Nucleare, Sezione di Genova, Via Dodecaneso 33, I-16146, Genova, Italia. Tel : +39 010 3536468 E-Mail: Cell: +39 349 2724919
Received on Thu Aug 25 2005 - 17:49:48 MEST

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