-
new random value every time
Hi, I have this code I tried, and I figured it wouldn’t work because its lacking, I just don’t know how to say what I want it to do properly.
mus = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
seedRandom(2,true)
random([0,0,0,1],[1,1,1,1])
if(mus>10){
seed = (random())
seedRandom(seed,true)
random([0,0,0,1],[1,1,1,1])
}What I want it to do is create a new random “seed” value every time “mus” goes past 10. Is this a while loop or something else? I couldn’t think of anything so if anyone has an idea, any help is most appreciated. Thank You!