There is a distinct lack of random functions for vectors, so I decided to add some to the Mouse Potato Utils Plugin.
However, I’m not sure whether I should make the right end of the range inclusive (make it a maximum) or exclusive (like the range() function) when it comes to integer vectors.
I’ll make it inclusive for now, but what do you think?


I’m a fan of inclusive min, exclusive max for rng. It behaves consistently with decimal numbers in a readable way, for example int(0,100) can return 100 different integers. x<0 has a 0% chance of happening, x<50 is 50%, x<100 is 100%. If you swap with dec(0,100) you could now get 99.999 but x<50 is still exactly 50%
I do agree with amio on consistency and making sure each method added is worth the abstraction.
In that case, I might add an optional boolean toggle for use as a range. But the default should be inclusive to stay consistent with the float method… I think.