Procedural Generation

The wiki has a pretty cool tutorial about procedural meshes. Maybe this could get you started?