Random generation of 2 × n contingency tables