This example is based on a custom node. which returns a line pattern. This pattern is based on several while and random loops. I have not found a proper way to run a while loop over a marionette network so this is better to create in a custom node.
It is easier to play with the example, than explaining exactly how it works.
Have fun with it. This is my base study to find a workflow to project any pattern on a NURBS Surface which would be a real scope of usage.