algorithmic modeling for Rhino
Tags:
Hi all
Im stuck with a very simple task: shuffling elements in a list, in a way they are trully shuffled and not repeating the values again(as in a card shuffling). Is it possible?
using the ramdon will duplicate some values...
there's also a Shuffle component now, you can control how much shuffling you want. Values close to zero will only randomize items a little bit, shuffling factors close to 1 will completely randomize the distribution.
Thanks David.
I will try this, Im still using the old version.
Best
Hi there.
yeah, I know it is old...
The problem with this definition are the repetition of the values... Im using unique colours for colouring different panels.
What I did is to create a larger amount of unique values and ramdon reduce it:
But still not an ideal solution.
Repetition of what values? The third panel/column in my example contains no duplicate values, just the original sequence of unique values in random order. The same thing can be done with color values - sort them by random numbers. Do you understand how 'Sort' works?
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by