74 COMPLEX*16 FUNCTION zlarnd( IDIST, ISEED )
90 DOUBLE PRECISION zero, one, two
91 parameter( zero = 0.0d+0, one = 1.0d+0, two = 2.0d+0 )
92 DOUBLE PRECISION twopi
93 parameter( twopi = 6.28318530717958647692528676655900576839d+0 )
96 DOUBLE PRECISION t1, t2
103 INTRINSIC dcmplx, exp, log, sqrt
113 IF( idist.EQ.1 )
THEN
118 ELSE IF( idist.EQ.2 )
THEN
122 zlarnd = dcmplx( two*t1-one, two*t2-one )
123 ELSE IF( idist.EQ.3 )
THEN
127 zlarnd = sqrt( -two*log( t1 ) )*exp( dcmplx( zero, twopi*t2 ) )
128 ELSE IF( idist.EQ.4 )
THEN
132 zlarnd = sqrt( t1 )*exp( dcmplx( zero, twopi*t2 ) )
133 ELSE IF( idist.EQ.5 )
THEN
137 zlarnd = exp( dcmplx( zero, twopi*t2 ) )
double precision function dlaran(iseed)
DLARAN
complex *16 function zlarnd(idist, iseed)
ZLARND