74 DOUBLE PRECISION FUNCTION dlarnd( IDIST, ISEED )
91 DOUBLE PRECISION ONE, TWO
92 parameter ( one = 1.0d+0, two = 2.0d+0 )
93 DOUBLE PRECISION TWOPI
94 parameter ( twopi = 6.2831853071795864769252867663d+0 )
97 DOUBLE PRECISION T1, T2
100 DOUBLE PRECISION DLARAN
104 INTRINSIC cos, log, sqrt
112 IF( idist.EQ.1 )
THEN
117 ELSE IF( idist.EQ.2 )
THEN
122 ELSE IF( idist.EQ.3 )
THEN
127 dlarnd = sqrt( -two*log( t1 ) )*cos( twopi*t2 )
double precision function dlarnd(IDIST, ISEED)
DLARND