How do I spawn an object in a random but "safe" location?

Do you still need any help?