Is a random walk algorithm and the code in openscad to generate it. The pictures include copies made in shapeways and printed at home every iteration is different. I added 5 renditions in stl format.
Note: I sell this pieces in my shapeways store.
Open Scad instructions
cantidad variable holds the number of steps changing it will make your results longer or shorter. Note everytime you compile you get a different one so you want to rended instead of preview.