A little unclear. Do you want to spawn an object along a line at random points? At the edge of an object (ie, at a point)?
Image points are probably your solution. You can have a few and pick them randomly by putting random(FirstImagePoint, LastImagePoint) in the image point field for spawning an object on another object.