Random Position on Nav Mesh

I would like to move my game character, which is a navmesh agent to a random position on a Nav Mesh. I have the character moving, i just need to choose a random walkable position.

I am using this line to move to a specific object:

GetComponent<NavMeshAgent>().destination = theObject.position;

Thanks

You could write a Script which takes random values for X and Z.

transform.position = Vector3(Random.value * 100, yourNavMeshHeight , Random.value * 100, );

But i guess in any game you’re better off placing your SpawnLocators manually.