Program to Generate Breit-Wigner-Distributed Random Numbers
Write a subprogram with the following specifications:
CALL: CALL RNBW(A,GAMMA,R,N)
INPUT ARGUMENTS: A - expectation value a
GAMMA - full width at half maximum (FWHM)
N - number n of generated random numbers
OUTPUT ARGUMENT: R - n-dimensional vector of random numbers following a Breit-Wigner distribution characterized by a and
Write a main program which calls this subprogram and displays the generated numbers numerically or. optionally. graphically as a histogram (Fig. 4.8).
Fig. 4.8
