First let me say that I’m sure there are a few different ways to do this, but here’s how I would:
base = 4;
seedRandom(index);
dec = random(0,99) / 100;
base + dec;
The easiest way to change the ‘speed’ of a random() function in AE is to use the posterizeTime(x); function which only returns the value of the expression x times per second:
base = 4;
seedRandom(index);
posterizeTime(1);
dec = random(0,99) / 100;
base + dec;
Would return a new random 4.xx number once every second, you could use a Slider expression control on the layer to control the posterizeTime() function.
It should be mentioned that there will still be jumps from number to number using this method (as they are still random numbers, only they are evaluated less frequently). If you want smoother transitions between values you should use the wiggle(); expression.
Darby Edelen
DVD Menu Artist
Left Coast Digital
Aptos, CA