Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions random numbers in steps of 5

  • random numbers in steps of 5

    Posted by Andreas Glatz on June 18, 2012 at 12:36 pm

    hi,

    i´m to bad in afx expressions for this…

    i would like to generate random numbers, but in steps of five. like 45-70-15 etc.

    would be very nice if someone knows a way to achieve this!

    thankyou, regards
    andi

    Andreas Glatz replied 13 years, 11 months ago 2 Members · 2 Replies
  • 2 Replies
  • Wim Bruyninckx

    June 18, 2012 at 3:12 pm

    value = Math.floor((random()*20))*5

    generates numbers divisible by 5, and a maximum of 100.
    (in fact it generates random numbers from 0 to 20 (the first value in bold) multiplied by 5 (the 2nd value in bold)

  • Andreas Glatz

    June 19, 2012 at 8:03 am

    thank you so much!

    always a pleasure someone taking his valueable time 🙂
    best wishes!

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