In this image you can see how to use the Parameter: Distance in the Surface distributor node for example: