Effects of microscale material randomness on the attainment of optimal structural shapes