Hi there, I’m trying to make a random sequence of a set of integer values.
Let’s take for example the 3 values 60, 120 and 180.
Is there a way to generate a random list of N elements long consisting out of these numbers?
Let’s say N is 10, the list would be for instance:
120
60
60
180
60
120
180
180
60
120
(reason for asking is that I would like to make a random cladding of wooden planks with 3 widths)
Many thanks
nicola
2
Hello Trae,
Please see attached a .skp example. Let me know if you have any question about it.Random.zip (75.0 KB)
Sometimes the solution is so simple, thanks!
Hi Nicola,
Thanks for this. Very helpful.
As a next step I would like to generate a list based on this list, in which the elements are added to the sum of all the previous elements:
60 -> 60
180 -> 240 (60+180)
60 -> 300 (240+60)
60 -> 360 (300+60)
120 -> 480 (360+120)
etc.
Is that at all possible?
nicola
5
Hi Trae,
Unfortunately that is currently not possible.