23 INTEGER a1,a1vw,a1w,a2,a2vw,a2w,m1,m2
26 INTEGER cg1(numg),cg2(numg),ig1(numg),ig2(numg),lg1(numg),
31 INTEGER curntg,k,s1,s2,z
42 COMMON /globe/m1,m2,a1,a2,a1w,a2w,a1vw,a2vw,ig1,ig2,lg1,lg2,cg1,
54 IF (.NOT. (qrgnin())) CALL
inrgcm()
56 IF (.NOT. (qqssd)) CALL
setall(1234567890,123456789)
64 s1 = a1* (s1-k*53668) - k*12211
65 IF (s1.LT.0) s1 = s1 + m1
67 s2 = a2* (s2-k*52774) - k*3791
68 IF (s2.LT.0) s2 = s2 + m2
72 IF (z.LT.1) z = z + m1 - 1
73 IF (qanti(curntg)) z = m1 - z
integer function ignlgi()
subroutine setall(iseed1, iseed2)