10 from the other list and insert/splice them into the original list (at the specified index, not appended to the list end) while overwriting the values contained therein- how would I go about this task? Ideally, I could then, in a second step, take yet another range of indices (20, 22.. whatever) from another list and splice them in again.
Any thoughts?
Thanks & g'nite
Max…
d an object, which allows me to define a value as an input and which then outputs an adjustable number of random values which - if summed - equal the input value. For example I want to define 50 as an input and the output should be 20 + 30 or 20 + 20 + 10 or 25 + 25,...
So basically I need something like a flipped addition object (but with an adjustable number of random output values) Is there anything like that in Grasshopper?
Thanks a lot in advance!
regards
Peter…
Added by Peter Steiner at 3:35pm on November 5, 2012
Fernando,
The problem is that for example in your definition, it gives 16 curves instead of 20!!! it always gives wrong numbers! I don't know what's the problem!
M
In the file attached there is an attempt where I highlighted a range of points around 50%, but I got just this far, and I do not know if there is a better way.
Thanks always for the help.
Best regards,
Federico…
I've attached a rh and ghx file. http://we.tl/ghsd0UTxji - wetransfer link. I'm guessing the trick is to correctly define the Range (R) / Domain in the Random component, so that the circles' radi can vary between the fixed and static domain of 10 or 12 or 14 or 18 or 20. Meaning that the radi can only be 10, 12, 14, 18 or 20 - and not, lets say.. 11, 13, 15, 16, 17 or 19 for that matter. Thanks in advance, i hope someone can figure it out, because i can't seem to find anything online about how to set up such as specific domain.
…
ch, also because random numbers (which I have never tried before) repeats some random numbers which means your select item component will select an item twice and in doing so not realy split your random numbers into two lists of 10 but rather select maybe 8 out of the 20. This is why I use Jitter and Split list which seems to me solves the problem before it begins. You get your list of 20 boxes split into two random lists this way. If my explanation was exhaustive and unnecessary I appoligize.
I forgot to show it on the picture, the 20 is divided by "2" to split the list in the middle.
Hope its helpful :)…