ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Random number within a range and hold it

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
hat-rack
Random number within a range and hold it
on Aug 7, 2007 at 4:32:48 pm

Hi,

I've been able to get a random number from 0-1000 using:

wiggle(0,1000);

This generates the number and it stays the same over the whole time line. Now I need to get a random number from 1000-2000. How can I accomplish this with wiggle or is there a different method? I tried:

random(1000,2000);

but this generates a random number for every frame that plays.

Thanks!




Return to posts index

Dan Ebberts
Re: Random number within a range and hold it
on Aug 7, 2007 at 5:49:34 pm

This should do it:

seedRandom(index,true);
random(1000,2000);



Dan





Return to posts index

Harry Davidson
Re: Random number within a range and hold it
on Feb 26, 2018 at 12:33:32 pm

Thanks Dan!


Return to posts index


Patricio Veloso
Re: Random number within a range and hold it
on Mar 21, 2018 at 12:06:22 pm

Thanks Dan for your invaluable support to the AE community woldwide.
Hugs!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]