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
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 )