1 DOUBLE PRECISION FUNCTION dlarnd( IDIST, ISEED )
45 DOUBLE PRECISION one, two
46 parameter( one = 1.0d+0, two = 2.0d+0 )
47 DOUBLE PRECISION twopi
48 parameter( twopi = 6.2831853071795864769252867663d+0 )
51 DOUBLE PRECISION t1, t2
58 INTRINSIC cos, log, sqrt
71 ELSE IF( idist.EQ.2 )
THEN
76 ELSE IF( idist.EQ.3 )
THEN
81 dlarnd = sqrt( -two*log( t1 ) )*cos( twopi*t2 )