I think this is what you are after...
Keep in mind with this method there will always be a tiny chance the objects will spawn on top of each other, and this chance increases as you fill the screen. That is why you have the adjustable repeat loop. An alternative would be a 'while' loop as this is dangerous as it can hang and crash the whole game.