Two GH definitions presented below are aimed at shuffling panels by replacing their indices randomly. “Shuffling Panels Ver.1” is without probability distribution and “Shuffling Panels Ver.2” is the one with.
The common set up of our targeted space for both definitions is a 4 x 4 grid along which mesh panels are arranged and color-coded according to the indices of each grid cell. For the random component, we use one of GH components, Jitter, which allows us to shuffle those list indices of the grid cells with its parameter, shuffling strength and seed. In the version 2, in order for us to set frequency of all outcomes as random distribution before shuffling panels, we incorporated GH Graph Mapper and our custom python script component Get Distributions.
without Probability Distribution
There is no random distribution set on this version of “Shuffling Panels” but we could say that it is uniformly distributed because every index occurs only one time. The occurrence on the left is with a shuffling strength of 0 which represents the initial grid condition and the one on the right is with a shuffling strength of 10, which is randomly shuffled by its max strength.
Variations of the GH definition “Shuffling Panels Ver.1” with different shuffling strength 0 to 1.
With the use of the modulus, it can now have indices ranging from 0 only to 5 but still uniformly distributed.
Use Case Random Areas in Multiple Domains
Unlike “Shuffling Panels Ver.1” without distribution, in this example, the frequency of the random variables is controlled by the distribution generated by Graph Mapper component’s value as ratio factors. This example used the “Gaussian” type of graph. The occurrence on the left is with a shuffling strength of 0 which represents the initial grid condition and the one on right is with a shuffling strength of 10, which is randomly shuffled by its max strength.
Those figures present the variation of random patterns through a shuffling strength 0 to 1 and the various types of distribution (frequency distribution) available in GH Graph Mapper. “Linear”, “Gaussian”, and “Parabola” types of graphs were used.
- Random Subdivisionpost type