fixed generateRandomRay function...