Script to render a scene from a bunch of different positions/angles?

Let’s say I want to render a scene at every whole-numbered point in the region (-10, -10, -10) to (10, 10 10) and save the output to numbered image files. How would I do that?

(I’m working with computer vision, if that makes this seem any less crazy.)