Ensured that each random comparison wouldn't duplicate any other object.