74 COMPLEX FUNCTION clarnd( IDIST, ISEED )
91 parameter( zero = 0.0e+0, one = 1.0e+0, two = 2.0e+0 )
93 parameter( twopi = 6.28318530717958647692528676655900576839e+0 )
103 INTRINSIC cmplx, exp, log, sqrt
113 IF( idist.EQ.1 )
THEN
118 ELSE IF( idist.EQ.2 )
THEN
122 clarnd = cmplx( two*t1-one, two*t2-one )
123 ELSE IF( idist.EQ.3 )
THEN
127 clarnd = sqrt( -two*log( t1 ) )*exp( cmplx( zero, twopi*t2 ) )
128 ELSE IF( idist.EQ.4 )
THEN
132 clarnd = sqrt( t1 )*exp( cmplx( zero, twopi*t2 ) )
133 ELSE IF( idist.EQ.5 )
THEN
137 clarnd = exp( cmplx( zero, twopi*t2 ) )
complex function clarnd(idist, iseed)
CLARND
real function slaran(iseed)
SLARAN