If you make the red part by stroking a path, you can make random dots by stroking a slightly narrower line in green on another layer, and set this layer to Dissolve mode with reduced opacity.
You can get pretty much the same result by stroking the path with the paint brush that you set to Dissolve mode but you can't easily adjust the opacity (requires more tries).