Does the random function support decimals?
Fafnir312
Member Posts: 161
I'm creating lightning and I have it working except that random seems to return a 0 if I use decimals for the min and max.
My change/constrain attribute behavior:
self.fadeSpeed to random(0.007, 0.07
My change/constrain attribute behavior:
self.fadeSpeed to random(0.007, 0.07
Comments
though .007 I think is too small if you are using it for a timer. I think the smallest number that is noticeable is .01.
EDIT:
@ipwnu: yeah, or that could work.
Therefore, I would imagine that .1 is the min anything can be.