rtim.for 567 B

1234567891011121314151617181920212223242526272829
  1. SUBROUTINE INTIME(HOURS, MINUTES, SECONDS)
  2. IMPLICIT INTEGER (A-Z)
  3. DIMENSION TARRAY(3)
  4. C CALL GETTIM(HOURS, MINUTES, SECONDS, HUNDREDTHS)
  5. CALL ITIME(TARRAY)
  6. HOURS = TARRAY(1)
  7. MINUTES = TARRAY(2)
  8. SECONDS = TARRAY(3)
  9. END
  10. SUBROUTINE INIRND(SEED)
  11. INTEGER SEED,SEEDY
  12. COMMON /RANDOM/ SEEDY
  13. SEEDY = SEED
  14. END
  15. FUNCTION RND(MAXVAL)
  16. IMPLICIT INTEGER (A-Z)
  17. COMMON /RANDOM/ SEEDY
  18. SEEDY = IAND(SEEDY*(1024+32+2+1) + 17, '7FFFFFFF'X)
  19. RND = MOD((SEEDY/100),MAXVAL)
  20. END
  21. SUBROUTINE EXIT
  22. C NO "CALL EXIT" HERE
  23. STOP
  24. END