The background photons are distributed randomly across the image using the standard fortran random number generator - seeded using the system clock.