The spawning attempts first select a location in render distance, but can walk something like 8 blocks out of render distance I think. I'm not sure about the exact numbers, but you can often get chunk loading at the border of view distance chunks due to mob spawning attempts.