5 * Revision 1.1.1.1 1995/10/24 10:20:01 cernlib
9 #include "geant321/pilot.h"
10 *CMZ : 3.21/02 29/03/94 15.41.44 by S.Giani
15 *=== kpois ============================================================*
17 FUNCTION KPOIS(EXPLAM)
19 #include "geant321/dblprc.inc"
20 #include "geant321/dimpar.inc"
21 #include "geant321/iounit.inc"
23 C*** EXPLAM IS EXP(-LAMBDA)
24 C*** SQMPLING FROM POISSON DISTRIBUTION, AVERAGE LAMBDA
25 C*** PK = EXP(-LAMBDA)*LAMBDA**K/(K-FACTORIAL)
31 IF (Y.LT.EXPLAM) GO TO 10