Generative design uses algorithms and programming to create variations on designs and explore different solutions. It allows for fast generation of many designs with minimal effort compared to traditional CAD tools. While it enables creativity and flexibility, generative design currently lacks a clear theoretical framework and manual changes to generated models can be lost. Case studies on the Serpentine Gallery pavilion and National Swimming Center in China demonstrate how generative design was used to develop complex geometries and optimize structural design.