Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Pawian
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PWA
Pawian
Commits
b62e6729
Commit
b62e6729
authored
13 years ago
by
Matthias Steinke
Browse files
Options
Downloads
Patches
Plain Diff
added a seed in EvtSimpleRandomEngine and cleaned up things
parent
389699bf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
PspGen/EvtRandomEngine.cc
+0
-41
0 additions, 41 deletions
PspGen/EvtRandomEngine.cc
with
0 additions
and
41 deletions
PspGen/EvtRandomEngine.cc
deleted
100644 → 0
+
0
−
41
View file @
389699bf
//--------------------------------------------------------------------------
//
// 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: EvtRandomEngine.cc
//
// Description: routines to generate random numbers
// really trivial random number
// implementation.
//
// Modification history:
//
// RYD December 25, 1999 Module created
//
//------------------------------------------------------------------------
//
#include
<stdio.h>
#include
<math.h>
#include
<iostream>
#include
"PspGen/EvtRandomEngine.hh"
double
EvtRandomEngine
::
random
(){
static
unsigned
long
int
next
=
1
;
next
=
next
*
1103515245
+
123345
;
unsigned
temp
=
(
unsigned
)(
next
/
65536
)
%
32768
;
return
(
temp
+
1.0
)
/
32769.0
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment