Random values on bang

hi all,

what’s the best practice to get random values on bang? or don’t you mind keeping your random generators running? looks a bit complicated with an if loop and s+h.

In VL you could configure an exposed function of an object to run if the input pin was true? some kind ob build in if loop. still here or something else?

thx

that’s not a problem, so only the S+H is fine… if you want to avoid evaluating the random, you can use a cache region:

both is fine.