random positioning of elements considering positions of another elements