I would drop an invisible rectangle sprite A on the layout, generate random X and Y coordinates so that
x=(layoutWidth/2)+round(random((layoutWidth*-1),layoutWidth))
y=(layoutheight/2)+round(random((layoutheight*-1),layoutheight))
Create sprite where location (x,y) doesn't overlap sprite A