One Robot for Many Tasks: Versatile Co-Design Through Stochastic Programming