COSMOS v7.655  COSMOSv7655
(AirShowerMC)
mnrn15.f File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine mnrn15 (VAL, INSEED)
 

Function/Subroutine Documentation

◆ mnrn15()

subroutine mnrn15 (   VAL,
  INSEED 
)

Definition at line 10 of file mnrn15.f.

References a, h, o, parameter(), and z.

Referenced by mnexcm(), mnimpr(), mnseek(), and mnset().

10 *
11 * $Id: d506dp.inc,v 1.1.1.1 1996/03/07 14:31:32 mclareni Exp $
12 *
13 * $Log: d506dp.inc,v $
14 * Revision 1.1.1.1 1996/03/07 14:31:32 mclareni
15 * Minuit
16 *
17 *
18 *
19 *
20 * d506dp.inc
21 *
22 C ************ DOUBLE PRECISION VERSION *************
23  IMPLICIT DOUBLE PRECISION (a-h,o-z)
24 C This is a super-portable random number generator.
25 C It should not overflow on any 32-bit machine.
26 C The cycle is only ~10**9, so use with care!
27 C Note especially that VAL must not be undefined on input.
28 C Set Default Starting Seed
29  parameter(three=3.0)
30  DATA iseed/12345/
31  IF (val .EQ. three) GO TO 100
32 C
33  inseed = iseed
34  k = iseed/53668
35  iseed = 40014*(iseed-k*53668) - k*12211
36  IF (iseed .LT. 0) iseed = iseed + 2147483563
37  val = REAL(ISEED) * 4.656613e-10
38  RETURN
39 C "entry" to set seed, flag is VAL=3.
40  100 iseed = inseed
41  RETURN
integer npitbl real *nx parameter(n=101, npitbl=46, nx=n-1) real *8 uconst
nodes z
dE dx *! Nuc Int sampling table e
Definition: cblkMuInt.h:130
real(4), dimension(:), allocatable, save h
Definition: cNRLAtmos.f:28
struct ob o[NpMax]
Definition: Zprivate.h:34
real(4), save a
Definition: cNRLAtmos.f:20
Here is the call graph for this function:
Here is the caller graph for this function: