Routine ID: V111 | |
---|---|
Author(s): D. Drijard | Library: MATHLIB |
Submitter: | Submitted: 15.09.1978 |
Language: Fortran | Revised: |
OBSOLETE
Please note that this routine has been obsoleted in CNL 218. Users are
advised not to use it any longer and to replace it in older programs.
No maintenance for it will take place and it will eventually disappear.
Suggested replacement: RNBNML (V137)
BINOMI generates a random integer N according to the binomial law:
where the 'sample size' M (a positive integer) and the probability P ( ) are specified by the user.
Structure:
SUBROUTINE subprogram
User Entry Names: BINOMI
External References: RNDM (V104)
Usage:
CALL BINOMI(M,P,N,IERR)
Notes:
BINOMI should not be used when M is 'large' (say >100 ). The normal approximation is then recommended instead (with mean and standard deviation ).
Los Alamos report LA-5061-MS.