Generation of a fixed number of particles