And what a fantastic rabbit hole.
I would recommend 'Generative Design'. http://www.generative-gestaltung.de/ (There is an English edition)
A really beautifully designed book. Great to leaf through for inspiration, but also has decent example code for a variety of techniques.