Randomizing geometry

Hello, everyone.

I’m working on a Grasshopper definition and I have an issue with randomization. I’m trying to create a series of objects, but their length (height) is being randomized unexpectedly. I believe there might be a data structure error or an issue with how I’m using the random component.

I have a set of curves and I’m using them to define the height of my objects. However, instead of a uniform or a controlled length, I’m getting random variations.

Could someone please help me identify the error in my setup? I’ve attached a screenshot of my Grasshopper definition. I appreciate any help. Thank you!

test2.3dm (55.7 KB)

test2.gh (17.7 KB)

could you first help me understand what you want?
why do you use a randomisation when you dont like random result?
What should be randomised what not?

I have 3 curves, and I need to place them on the plane in a random order, but when it comes to a surface with 3 points (trimmed surface), everything breaks down. The task is to place the curves in a random order without repetitions and omissions.

You have this issue because the input(s) of the sweep1 are sorted differently.
You can check that using a slider + list item and scroll along the numbers.

To sort them in the same order, I took an edge of the surface and sorted both lists along that curve.
When combining in sweep the input is grafted, so the lists are combined 1 by 1

There are probably other ways to solve this, but it works :slight_smile:

Regards, Eef


test2EW.gh (26.3 KB)

It’s working perfectly now. Thank you!!!:heart_decoration:

doubt…
what I can see is that the first and second section are used just once.
and all the randomising and REsorting the list is done only to make these apeare in a random position. …just once

but your sketch looks different