Greetings!
Please tell me how to set the random rotation of each rectangle so that the rotation angle is equal to 0 or 90 degrees?
Thank you
my general approach for this concept of constrained randomness.
- have a bank of values (eg a list of numbers, 0 and 90 in your case, in a text panel) that you then duplicate many times (~at least twice as many values as you have objects)
- jitter the duplicated values to get the randomness
- cull the excess duplicated and jittered values to match the number of objects you have
Each rectangle must be randomly positioned at 0 or 90 degrees.
yep, if you have those two numbers in that bank of values, the duplicates will only be 0 or 90. the jittering will change the order of the duplicated values
I still don’t quite understand the action algorithm
this is one way with Random component set to “integers only” (right click the component to activate)
[quote=“inno, post:6, topic:193323”]
this is one way with Random component set to “integers only” (right click the component to activate)
[/quote]Thank you very much for your help
1 Like