Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

EvtRandomEngine Class Reference

#include <EvtRandomEngine.hh>

Inheritance diagram for EvtRandomEngine:

EvtBesRandom EvtStdlibRandomEngine List of all members.

Public Member Functions

virtual double random ()

Member Function Documentation

double EvtRandomEngine::random  )  [virtual]
 

Reimplemented in EvtBesRandom, and EvtStdlibRandomEngine.

00031                               {
00032   
00033   static unsigned long int next = 1;
00034 
00035   next=next*1103515245+123345;
00036   unsigned temp=(unsigned)(next/65536) % 32768;
00037   
00038   return ( temp + 1.0 ) / 32769.0;
00039 
00040 }


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 16:08:57 2011 for BOSS6.5.5 by  doxygen 1.3.9.1