Make a list or array of 'things' (these are your particles). Update each particle individually, and when some condition is met, e.g. the particle is out of the screen, or it surpassed some maximum time to live, then you reset that particle again with new settings. Easy as cake!