]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TEvtGen/EvtGen/EvtGenBase/EvtSimpleRandomEngine.hh
Converting TEvtGen to native cmake
[u/mrichter/AliRoot.git] / TEvtGen / EvtGen / EvtGenBase / EvtSimpleRandomEngine.hh
diff --git a/TEvtGen/EvtGen/EvtGenBase/EvtSimpleRandomEngine.hh b/TEvtGen/EvtGen/EvtGenBase/EvtSimpleRandomEngine.hh
new file mode 100644 (file)
index 0000000..76865c4
--- /dev/null
@@ -0,0 +1,50 @@
+//--------------------------------------------------------------------------
+//
+// Environment:
+//      This software is part of the EvtGen package developed jointly
+//      for the BaBar and CLEO collaborations.  If you use all or part
+//      of it, please give an appropriate acknowledgement.
+//
+// Copyright Information: See EvtGen/COPYRIGHT
+//      Copyright (C) 1998      Caltech, UCSB
+//
+// Module: EvtGen/EvtRandom.hh
+//
+// Description:Class to generate random numbers. Single member
+//             function random is expected to return a random
+//             number in the range ]0..1[.
+//
+// Modification history:
+//
+//    RYD     December 25, 1999         Module created
+//
+//------------------------------------------------------------------------
+
+#ifndef EVTSIMPLERANDOMENGINE_HH
+#define EVTSIMPLERANDOMENGINE_HH
+
+#include "EvtGenBase/EvtRandomEngine.hh"
+
+class EvtSimpleRandomEngine : public EvtRandomEngine {
+
+public:
+
+    EvtSimpleRandomEngine(){
+       _next=1;
+    }
+
+    void reset() {
+       _next=1;
+    }
+
+    virtual double random();
+
+private:
+
+  unsigned long int _next;
+
+};
+
+#endif
+
+