76 COMPLEX FUNCTION clarnd( IDIST, ISEED )
94 parameter( zero = 0.0e+0, one = 1.0e+0, two = 2.0e+0 )
96 parameter( twopi = 6.2831853071795864769252867663e+0 )
106 INTRINSIC cmplx, exp, log, sqrt
116 IF( idist.EQ.1 )
THEN
121 ELSE IF( idist.EQ.2 )
THEN
125 clarnd = cmplx( two*t1-one, two*t2-one )
126 ELSE IF( idist.EQ.3 )
THEN
130 clarnd = sqrt( -two*log( t1 ) )*exp( cmplx( zero, twopi*t2 ) )
131 ELSE IF( idist.EQ.4 )
THEN
135 clarnd = sqrt( t1 )*exp( cmplx( zero, twopi*t2 ) )
136 ELSE IF( idist.EQ.5 )
THEN
140 clarnd = exp( cmplx( zero, twopi*t2 ) )