FORUMS: list search recent posts

random numbers in steps of 5

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Andreas Glatz
random numbers in steps of 5
on Jun 18, 2012 at 12:36:45 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


Return to posts index

Wim Bruyninckx
Re: random numbers in steps of 5
on Jun 18, 2012 at 3:12:29 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)


Return to posts index

Andreas Glatz
Re: random numbers in steps of 5
on Jun 19, 2012 at 8:03:51 am

thank you so much!

always a pleasure someone taking his valueable time :)
best wishes!



Return to posts index

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