An algorithm and FORTRAN program are presented for the Terpstra-Jonckheere test statistic and associated probability value based on a randomization routine.