A new Monte Carlo Generator for Ultra-High Energy Cosmic Rays from the Local and Distant Universe