Hi Mauer,

It sounds like you need to split your list of 200 objects randomly
into 2 lists. Here;s 2 ways of doing that.

1) Using the [Random] component, generate N random numbers, where N
equals the amount of surfaces. Then compare each random number to a
fixed value. You can use an Expression with 2 variables (x,y) for
this. The expression is "x < y". This comparison will give you a list
of Boolean values which you can then use in a [Dispatch] component.

2) Feed your surfaces into a [Jitter] component, and then use [Split
List] to break your randomized list into 2 parts.

--
David Rutten
[email protected]
Robert McNeel & Associates


On Mar 17, 7:28 pm, mauerhakenzwerg <[email protected]>
wrote:
> hey,
> got a problem, as still learning grasshopper: i got about 200 surfaces
> and want to random select a certain percentage of them (with a
> slider?) and change their colour- but how can i do that??? i guess for
> you thats easy but i really have problems with unterstanding how this
> could work- (maybe because of my bad english- i do not really
> understand the random function)
>
> would be great if somebody could help me
> mauerhakenzwerg

Reply via email to