- Draw an initial path.
- Determine how many pieces you want and what percentage of the full path each piece should account for. (Here we're using 20 pieces of random sizes.)
- Get the location of each section's points along the overall path.
- Use those points to draw a new path for each section.