This commit was generated by cvs2svn to compensate for changes in r2,
[u/mrichter/AliRoot.git] / GEANT321 / miguti / azirn.F
1 *
2 * $Id$
3 *
4 * $Log$
5 * Revision 1.1.1.1  1995/10/24 10:21:53  cernlib
6 * Geant
7 *
8 *
9 #include "geant321/pilot.h"
10 *CMZ :  3.21/02 29/03/94  15.41.48  by  S.Giani
11 *-- Author :
12       SUBROUTINE AZIRN(SIN,COS)
13 #include "geant321/crandm.inc"
14 C       THIS ROUTINE SELECTS THE AZIMUTHAL ANGLE UNIFORMLY IN THETA
15    10 R1 = SFLRAF(DUM)
16       R1SQ = R1 * R1
17       R2 = RANDC(ISEED)
18       R2SQ = R2 * R2
19       RSQ = R1SQ + R2SQ
20       IF(1.0-RSQ) 10 ,20 ,20
21    20 SIN = 2.0 * R1 * R2 / RSQ
22       COS = (R2SQ-R1SQ) / RSQ
23       RETURN
24       END