Text this: Algorithms for random generation and counting :