Moving shape randomly along a line

Hello,

I’m having a hard time to solve my problem. I’m trying to put randomly the 4 shapes (below in the screenshot) on a line.

I try to move them to a point and for each, randomly choose one of the four. And if possible, manage the probability of each shape to have more of one and less of another.

An help would be welcome !

Thank you

Groues vagues V1.gh (23.7 KB)

You could shuffle the list using Jitter and place these shuffled list of curves onto the base line using Orient Direction.


Groues vagues V1_re.gh (25.3 KB)

Sound and look good to me ! Thanks you !
I will learn from it.
Have a good day !

Hi,

Another approach with the possibility to

manage the probability of each shape to have more of one and less of another.



Groues vagues V1_regee.gh (31.6 KB)

Thanks you a lot for the help !