Random spawn for a gameobject

Probably someone already did this topic.
I created a gameobject, and I want it to spawn randomly, how can I do this?

to save you time,

Vector3 position = new Vector3(Random.Range(-10.0f, 10.0f), 0, Random.Range(-10.0f, 10.0f));
Instantiate(prefab, position, Quaternion.identity);

the random.range says in between -10 and 10.