Tree branch structures along a path

Hello!
i am working for my school project where i have to generate organic shaped structures similiar to a tree branch. The attached gh file is the script i generated but i am facing issues.


the above script generated a good irregular branches.
THE HELP I WANT IS WHETHER IT IS POSSIBLE TO GENERATE IT ALONG A CERTAIN PATH OR SURFACE.
PLEASE GUIDE ME THROUGH THIS AS I AM IN REAL NEED OF HELP.

Trial 1.gh (16.1 KB)