ABSTRACT. We prove that a Gaussian ensemble of smooth random sections of a real vector bundle E over compact manifold M canonically defines a metric on E together with a connection compatible with it. Additionally, we prove a refined Gauss-Bonnet theorem stating that if the bundle E and the manifold M are oriented, then the Euler form of the above connection can be identified, as a current, with the expectation of the random current defined by the zero-locus of a random section in the above Gaussian ensemble.