Check to see if the new spawn location is different than the previous one?

Hi all,

I have an issue with spawning enemies. My script successfully spawns enemies randomly and different locations. However, time to time it spawns at the same location which makes it ver difficult for the player to deal with the enemy.
I have not been successful in writing a script to check the new spawn location with previous one and make sure they are different.
Any help would be appreciated.

Thanks.

I have created an example. I hope it helps. Example Project