You could use pick nearest with distance()
Create object at random(maxwidth), random(maxheight)
-While object.count is less than value.object max
->set ranx.value to random(maxwidth), rany.value to random(maxheight)
->object pick closest to ranx, rany
-->distance(object.x,object.y, ranx,rany)<value.mindistance
--->create object at ranx, rany