I would like to have a composition that chooses a random number
ONLY ONCE, when it's first started.
Using the "Random" object results in a new random being generated
every time a frame is drawn. How can I make sure the first number
that is chosen is "frozen"?
Thanks,
-Michael.
You could use a JavaScript with one output and two inputs that looked
something like this:
if (outputs[0]==undefined){
outputs[0]=math.random*(inputs[1]-inputs[0])+inputs[0]
}
This will set the random output to a number between the inputs on the
first run and nothing after that.