"Algorithms for Random Generation and Counting: A Markov Chain Approach" - читать интересную книгу автора (A. Sinclair)