𝒢=SpatialGraphDistribution[100,0.2];

RandomGraph[𝒢]

NProbability[x == 1, x \[Distributed] GraphPropertyDistribution[Boole[ConnectedGraphQ[g]], g \[Distributed] 𝒢]]