Enumeration, Counting, and Random Generation of Ladder Lotteries

A ladder lottery, known as “Amidakuji” in Japan, is one of the most popular lotteries. In this paper, we consider the problems of enumeration, counting, and random generation of the ladder lotteries. For given two positive integers \(n\) and \(b\), we give algorithms of enumeration, counting, and random generation of ladder lotteries with \(n\) lines and \(b\) bars.