Randomly duplicating MCs along an axis

Heres the thing Im duplicating a MC to a random position along the x axis, all of this with a scripted loop, no problem so far… but how do i prevent the duplicated mcs from overlaping when the same random x position is given to two or more of the duplicates???