in reply to random pairs

Any help/advice appreciated

Try wanting something else ? Posting some code? Like the one where you can't seem to be able to prevent some issues?