After Effects Random Number, but different each time
Posted on 2016-10-04
I'm trying to create an expression for a slider control that will generate a random number between 1 and 8, but making sure the same number is not picked simultaneously two times in a row.
However, lastValue is always being read as 0.
Any idea what I am doing wrong?
holdTime = 0.1;
seed = Math.floor(time/holdTime);
} while (newValue==lastValue)