Generation of particles with irregular shape and the overlap detection are crucial for numerical simulation of granular materials. This paper presents a systematic approach to develop a two-dimensional random particle model for numerical simulation of granular materials. Firstly, a random angular bend (RAB) algorithm is proposed and coded in Python to simulate the geometric model of individual particle with irregular shape. Three representative parameters are used to quantitatively control the shape feature of generated polygons in terms of three major aspects, respectively. Then, the generated geometrical models are implemented into particle flow code PFC 2D to construct the clump library. The clumps are created via the mid-surface method. Besides, an overlap detection algorithm is developed to address the difficulties associated with spatial allocation of irregularly shaped particles. Finally, two application examples are adopted to validate the feasibility of the proposed algorithm in the numerical modeling of realistic granular materials. The study provides a solid foundation for the generation and simulation of the granular materials based on angular bend theory.