Index: trunk/MagicSoft/Simulation/Detector/Reflector/reflector.cxx
===================================================================
--- trunk/MagicSoft/Simulation/Detector/Reflector/reflector.cxx	(revision 348)
+++ trunk/MagicSoft/Simulation/Detector/Reflector/reflector.cxx	(revision 349)
@@ -20,7 +20,7 @@
 //
 // $RCSfile: reflector.cxx,v $
-// $Revision: 1.9 $
+// $Revision: 1.10 $
 // $Author: harald $ 
-// $Date: 2000-01-28 09:19:54 $
+// $Date: 2000-01-31 20:53:57 $
 //
 ////////////////////////////////////////////////////////////////////////
@@ -3525,5 +3525,5 @@
   // using this option
 
-  it = RandomNumber * range;
+  it = acos(cos(range) + RandomNumber * (1 - cos(range)));
   ip = RandomNumber * 2.0 * M_PI;
 
@@ -3563,4 +3563,8 @@
 //
 // $Log: not supported by cvs2svn $
+// Revision 1.9  2000/01/28 09:19:54  harald
+// A new version from JoseCarlosGonzalez. The old routine for random_pointing
+// was not correct. This one should be okay!!
+//
 // Revision 1.20  2000/01/27  10:47:54  gonzalez
 // JAN2000-STABLE
