Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pyr.f
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file pyr.f
1 !-----------------------------------------------------------------
2 ! The point of this set of routines is to replace all potentially
3 ! used random number generators with functions and subroutines
4 ! that utilize a common seed sequence. In this case:
5 !
6 ! the CERNLIB RANECU series
7 !
8 ! MC programmers should now always use:
9 ! rndmq to initialize or obtain status
10 ! rlu to get a single 0:1 random number
11 ! nran to get a vector of 0:1 random numbers
12 ! rannor to get 2 Gaussian random numbers
13 !
14 !-----------------------------------------------------------------
15 
16 !-----------------------------------------------------------------
17 ! Replace the PYTHIA random number generator
18 
19  double precision function pyr(idummy)
20 
21  implicit none
22 
23  integer idummy
24  real r
25 
26  call ranlux(r,1)
27  pyr = r
28 
29  return
30  end
31