added code to sample the sky randomly