This document describes adapting a folklore algorithm for counting and sampling binary contingency tables to sample student enrollment data while satisfying degree program rules and semester balances. It discusses representing enrollment data as two-way tables, implementing the folklore algorithm components, and modifying it to first split tables into semester sub-tables to preserve balances, and then introduce compressed partial row sums to represent class selection rules. The adapted algorithm is applied to sample data for two example degree programs, and conditional value testing is proposed to evaluate results.