Random Spawnpoints

Is there a way to get a gameObject to spawn in a random location when the game starts? And can I choose the places it can spawn?
Thanks in advance.

Yes and Yes.

Either use Random to generate a random position for your gameobjects


Place empty gameobjects in your scene at the positions you want things to spawn, then set your spawned gameobjects position to those positions