Index: trunk/MagicSoft/Mars/msimcamera/MSimCamera.cc
===================================================================
--- trunk/MagicSoft/Mars/msimcamera/MSimCamera.cc	(revision 9278)
+++ trunk/MagicSoft/Mars/msimcamera/MSimCamera.cc	(revision 9290)
@@ -42,4 +42,5 @@
 
 #include <TF1.h>
+#include <TRandom.h>
 
 #include "MLog.h"
@@ -172,4 +173,12 @@
     const Int_t num = fEvt->GetNumPhotons();
 
+    // A random shift, uniformely distributed within one slice, to make sure that
+    // the first photon is not always aligned identically with a sample edge.
+    // FIXME: Make it switchable
+    const Float_t rndm = gRandom->Uniform();
+
+    // FIXME: Shell we add a random shift of [0,1] samples per channel?
+    //        Or maybe per channel and run?
+
     // Simulate pulses
     for (Int_t i=0; i<num; i++)
@@ -178,5 +187,5 @@
 
         const UInt_t   idx = ph.GetTag();
-        const Double_t t   = (ph.GetTime()-fStat->GetTimeFirst())*freq;// - fSpline->GetXmin();
+        const Double_t t   = (ph.GetTime()-fStat->GetTimeFirst())*freq+rndm;// - fSpline->GetXmin();
 
         // FIXME: Time jitter?
