Programming custom light sources and uniform deviates