Statistics for Computational design of curved thin shells: from glass façades to programmable matter