Stochastic and Geometric Mechanics of Resilient Structures