Thank you Adam for the suggestion. I already sorted this out using expressions on each layer together with a random number generator to alternate the starting and the ending point for each layer. I’ll have a look at the script you suggested though. Seems like an easy way to solve things like this in the future.
Once again, thanks!