Author(s): D. Drijard, K.S. Kölbig | Library: MATHLIB |
Submitter: | Submitted: 15.10.1994 |
Language: Fortran | Revised: |
Subroutine subprogram RNBNML generates a random integer N>0 according to the binomial distribution
where the 'sample size' M>0 and the probability P ( ) are specified by the user.
Structure:
SUBROUTINE subprogram
User Entry Names: RNBNML
External References: RANLUX
Usage:
CALL RNBNML(M,P,N,IERR)
Notes:
RNBNML should not be used when M is 'large' (say
>100 ). The normal approximation is then recommended instead (with
mean and standard deviation
).