I need to have the value of an operator to be randomized (only once) each time i open up the project.
I tried with tdu.rand(), but the value stays the same each time
Hello, you need to enter a seed, to obtain a different number.
like tdu.rand(absTime.frame). In case you fear it take exactly the same number of frame to open, you can make a calculation with absolute time in the year.
Yes, but with just the seed number, the value will be the same.
Using absTime.frame or .seconds will keep changing it while i only need it to change once at project start up
You can make a python script feeding a constant chop with absTime.frame, and use tdu.rand(op(‘constant1’)[0])
So the seed is initialised and dont change after.
I was hoping to find a way to only use the parameter field, but thank you anyways, i’ll give it a try!
I think you cannot use only the parameter field, you need somewhere to initialize and keep the seed value.
Here is a proposition giving a stable random number, different for each start.
startRandom.toe (4.0 KB)
Oh, ok gonna try this one, thank you so much!
