Hi all!
Here is a demo I just finished, to show how you can use [pd-fileutils] as a tool to generate Pd patches programmatically.
http://sebpiq.github.com/pd-fileutils/randomDrone.html
Enjoy! And don't hesitate to ask for more details ...
Sébastien Piquemal
pd-fileutils on github : https://github.com/sebpiq/pd-fileutils webpd on github : https://github.com/sebpiq/WebPd