14. OTHER PROGRAMMING OR OPERATING INFORMATION OR RESTRICTIONS
In ad- dition to the four subroutines in DISCUS, the user must supply the following subroutines which are required in connection with the gen- eration of the pseudorandom number sequence. (These are all stan- dard HARWELL Subroutine Library Programs.):
REAL FUNCTION FAO1AS (I)
The function value returned by FAO1AS is a real pseudorandom number in the range (0.0 to 1.0) if I is positive or zero; or in the range (-1.00 to 1.00) if I is negative.
SUBROUTINE FAO1BS (MAX, NVALUE)
This subroutine will set NVALUE to a pseudorandom integer in the interval (1 to MAX) inclusive. MAX should always be positive otherwise there will be a bias towards zero.
SUBROUTINE FAO1DS (I,J)
Resets the value of the generator words used in FAO1AS or FAO1BS according to the input values of I,J. J must always be odd if one uses the Harwell subroutine library programs.
SUBROUTINE FAO1CS (I,J)
Passes back the current contents of the generator words via the variables I,J.