Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions 4 digits random number generator expression

  • Dan Ebberts

    May 19, 2010 at 5:07 pm

    What do you mean by “oscillates”. Do all the digits change at the same rate? Is there a specific rate, or range of rates? Is there any relationship between the digits, or do they act independently?

    Dan

  • Clarisse Rodriguez

    May 19, 2010 at 5:37 pm

    I would like for the digits to change at the same rate, but not so that they end up being the same number all the time (ex. 7777). So they would act independently from each other.

    Thanks for SUCH a quick response!

    ——————————
    https://www.vimeo.com/clarissecastelo

  • Dan Ebberts

    May 19, 2010 at 6:06 pm

    This source text expression may not be what you want, but it should get you started:

    s = “” + Math.floor(random(10000));
    while (s.length < 4) s = "0" + s; s Dan

  • Clarisse Rodriguez

    May 20, 2010 at 10:29 am

    Dan, you’re THE BEST!!

    Many thanks!

    ——————————
    https://www.vimeo.com/clarissecastelo

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy