Random assortment of objects that are based on a percentage

Hi. Noob here.

I am trying to create what is intended to be a media facade where the lights (100%) are broken down into colors (exp. 20% blue, 20% green, 20% orange, 20% red, 20% white - although these variables should be able to change based on the percentages I give). I want to be able to change the random seed to create a different order of these colors whenever I want to.

I am pretty lost on all of this. I found a random reduce definition that could be applicable for one of the percentages, however, I am unsure to do all five percentages at the same time and also output them into different color streams.

Any help you could give would be much appreciated.

Thanks.

Attached is a scaled down example of what I am trying to do.

For Help 4.gh (8.8 KB)

Moved to Grasshopper category.

Thanks

You could do something like this but, need to be careful about the adjustment of % values…


For Help 4_re.gh (13.3 KB)

To the rescue again. Thank you. Its funny that now that I look at this, it doesn’t seem that hard, but at the time…

:smiley: