How do you place a certain number of enemies in random positions and when you kill them all, the game is over?

I have the enemies and I have the scenery, but I don’t have the method to place those enemies in random positions on the scenery. Plus a process that says when I kill them all, it’s game over.