asa205_test, a FORTRAN90 code which calls asa205(), which enumerates contingency tables.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
asa205, a FORTRAN90 code which generates all the contingency tables corresponding to a given set of row and column sums. This is a version of Applied Statistics Algorithm 205.