Index: trunk/Mars/Changelog
===================================================================
--- trunk/Mars/Changelog	(revision 9873)
+++ trunk/Mars/Changelog	(revision 9874)
@@ -48,4 +48,5 @@
      - improved existing comments
      - added a full class description
+     - print a warning if TRandom is used a random number generator
 
    * mtools/MTFillMatrix.cc:
Index: trunk/Mars/mjoptim/MJOptimizeBase.cc
===================================================================
--- trunk/Mars/mjoptim/MJOptimizeBase.cc	(revision 9873)
+++ trunk/Mars/mjoptim/MJOptimizeBase.cc	(revision 9874)
@@ -97,4 +97,5 @@
 
 #include <TFile.h>
+#include <TRandom3.h>
 
 #include "MLog.h"
@@ -109,4 +110,12 @@
 
 using namespace std;
+
+//------------------------------------------------------------------------
+//
+MJOptimizeBase::MJOptimizeBase() : fDebug(-1), fEnableWeights(kFALSE)
+{
+    if (gRandom && gRandom->IsA()==TRandom::Class())
+        *fLog << warn << "WARNING - gRandom is a TRandom instance. It is highly adviced to use another random generator!" << endl;
+}
 
 //------------------------------------------------------------------------
Index: trunk/Mars/mjoptim/MJOptimizeBase.h
===================================================================
--- trunk/Mars/mjoptim/MJOptimizeBase.h	(revision 9873)
+++ trunk/Mars/mjoptim/MJOptimizeBase.h	(revision 9874)
@@ -22,5 +22,5 @@
     TList fTestCuts;        // Cuts executed only in testing
     TList fPreTasks;        // Tasks executed before cut execution
-    TList fPostTasks;       // Tasks executed after cut execution
+    TList fPostTasks;       // Tasks executed after pre cut execution
     TList fTestTasks;       // Tasks executed at the end of the testing tasklist
 
@@ -30,7 +30,5 @@
 
 public:
-    MJOptimizeBase() : fDebug(-1), fEnableWeights(kFALSE)
-    {
-    }
+    MJOptimizeBase();
 
     // MJOptimizeBase
