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?

you are viewing a single comment's thread
view the rest of the comments
[–] [S] 1 point 6 months ago

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.

  • source
  • parent