For a perfect square it should already generate a truly uniform distribution. For a rectangle, yes, you could just use the same offset in each direction. There are quite a number of solutions.