EvtRandomEngine Class Reference

#include <EvtRandomEngine.hh>

Inheritance diagram for EvtRandomEngine:

EvtBesRandom EvtStdlibRandomEngine List of all members.

Public Member Functions

virtual double random ()

Detailed Description

Definition at line 26 of file EvtRandomEngine.hh.


Member Function Documentation

double EvtRandomEngine::random (  )  [virtual]

Reimplemented in EvtBesRandom, and EvtStdlibRandomEngine.

Definition at line 31 of file EvtRandomEngine.cc.

References next, and subSeperate::temp.

Referenced by EvtRandom::random().

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 }


Generated on Tue Nov 29 23:19:14 2016 for BOSS_7.0.2 by  doxygen 1.4.7