2026 Volume 36 Issue 3 Pages 110-142
Abstract. This study proposes the pattern block method for generating random numbers. The pattern block method is a generalization of the rejection sampling method and the Ziggurat method. The pattern block method enables the generation of random numbers from multimodal density functions and multidimensional distributions. We demonstrate the effectiveness of the pattern block method through several examples.