(0,2) are 3 frames 0,1,2.
(0,1) is correct.
> (0,2) are 3 frames 0,1,2.
> (0,1) is correct.
That's what I thought, but the manual says it doesn't include the upper number.
Generate a random float between a and b, including a but not including b.
So the manual must be wrong.
do you have more than 3 frames?.. if not, just use choose(0,1).
This behaviour of random is pretty common across platforms. It would be horrible if random(n,m) could return both n and m as the the space between n + 1 and m - 1 would be different.