BOSS
7.0.6
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtRandomEngine.cc
Go to the documentation of this file.
1
//--------------------------------------------------------------------------
2
//
3
// Environment:
4
// This software is part of the EvtGen package developed jointly
5
// for the BaBar and CLEO collaborations. If you use all or part
6
// of it, please give an appropriate acknowledgement.
7
//
8
// Copyright Information: See EvtGen/COPYRIGHT
9
// Copyright (C) 1998 Caltech, UCSB
10
//
11
// Module: EvtRandomEngine.cc
12
//
13
// Description: routines to generate random numbers
14
// really trivial random number
15
// implementation.
16
//
17
// Modification history:
18
//
19
// RYD December 25, 1999 Module created
20
//
21
//------------------------------------------------------------------------
22
//
23
#include "
EvtGenBase/EvtPatches.hh
"
24
25
26
#include <stdio.h>
27
#include <math.h>
28
#include <iostream>
29
#include "
EvtGenBase/EvtRandomEngine.hh
"
30
31
double
EvtRandomEngine::random
(){
32
33
static
unsigned
long
int
next = 1;
34
35
next=next*1103515245+123345;
36
unsigned
temp=(unsigned)(next/65536) % 32768;
37
38
return
( temp + 1.0 ) / 32769.0;
39
40
}
41
42
43
EvtPatches.hh
EvtRandomEngine.hh
EvtRandomEngine::random
virtual double random()
Definition:
EvtRandomEngine.cc:31
source
Generator
BesEvtGen
BesEvtGen-00-04-08
src
EvtGen
EvtGenBase
EvtRandomEngine.cc
Generated by
1.9.6