the piecewise function {random([1,2])=1:a->a+1,b->b+1} always produces the same result when run as if the seed of the random function did not change. also the random function does work in other parts of a piecewise function with a similar syntax just not in the condition.
You can try this format:
{[1,2].random(1,s_eed)[1] = 1: a -> a + 1, b -> b + 1}
But you have to update seed for this to produce a new result. So seed can be tied to a button press, or to a ticker, or any other condition. Depending on what you are trying to do.
1 Like