76 COMPLEX*16 FUNCTION zlarnd( IDIST, ISEED )
93 DOUBLE PRECISION ZERO, ONE, TWO
94 parameter ( zero = 0.0d+0, one = 1.0d+0, two = 2.0d+0 )
95 DOUBLE PRECISION TWOPI
96 parameter ( twopi = 6.2831853071795864769252867663d+0 )
99 DOUBLE PRECISION T1, T2
102 DOUBLE PRECISION DLARAN
106 INTRINSIC dcmplx, exp, log, sqrt
116 IF( idist.EQ.1 )
THEN
121 ELSE IF( idist.EQ.2 )
THEN
125 zlarnd = dcmplx( two*t1-one, two*t2-one )
126 ELSE IF( idist.EQ.3 )
THEN
130 zlarnd = sqrt( -two*log( t1 ) )*exp( dcmplx( zero, twopi*t2 ) )
131 ELSE IF( idist.EQ.4 )
THEN
135 zlarnd = sqrt( t1 )*exp( dcmplx( zero, twopi*t2 ) )
136 ELSE IF( idist.EQ.5 )
THEN
140 zlarnd = exp( dcmplx( zero, twopi*t2 ) )
complex *16 function zlarnd(IDIST, ISEED)
ZLARND