* G05MLF Example Program Text * Mark 20 Release. NAG Copyright 2001. * .. Parameters .. INTEGER NOUT, N, NR PARAMETER (NOUT=6,N=20,NR=200) * .. Local Scalars .. INTEGER I, IFAIL, IGEN, M, NP, NS * .. Local Arrays .. DOUBLE PRECISION R(NR) INTEGER ISEED(4), X(N) * .. External Subroutines .. EXTERNAL G05KBF, G05MLF * .. Executable Statements .. WRITE (NOUT,*) 'G05MLF Example Program Results' WRITE (NOUT,*) * Set the distribution parameters NS, NP, M NS = 500 M = 900 NP = 1000 * Initialise the seed to a repeatable sequence ISEED(1) = 1762543 ISEED(2) = 9324783 ISEED(3) = 42344 ISEED(4) = 742355 * IGEN identifies the stream. IGEN = 1 CALL G05KBF(IGEN,ISEED) * Choose MODE = 2 IFAIL = 0 CALL G05MLF(2,NS,NP,M,N,X,IGEN,ISEED,R,NR,IFAIL) * WRITE (NOUT,99999) (X(I),I=1,N) STOP * 99999 FORMAT (1X,I12) END