Hi I'm having trouble getting 2 expression to work together on a slider control. Thanks to the wonderful Dan Ebberts, I'm using this expression to randomize a bunch of stills in a composition (

http://motionscript.com/expressions-lab-ae65/random-stills.html). My trouble is whenever the slider hits a value on 1, no stills are shown. I'd like to add to the expression so that the minimum value never goes below 2. Dan's expression looks like this:

`duration = .125; //length of each cut (seconds)`

seed = Math.floor(time/duration) + 1;

seedRandom(seed,true);

Math.floor(random(1,index));

I tried adding this line of code after:

`clamp(value, min=2, max=255)`

But it doesn't work. What am I doing wrong? Or is there a better way to do this?

Thanks!

`duration = .125; //length of each cut (seconds)`

seed = Math.floor(time/duration) + 1;

seedRandom(seed,true);

Math.floor(random(1,index));

clamp(value, min=2, max=255)