External Publication
Visit Post

I'm adding a random vector function to my plugin. Is range or min/max better?

People > Companies ❤️ - programming.dev [Unofficial] April 20, 2026
Source
submitted by MousePotatoDoesStuff to godot 8 points | 5 comments 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?

Discussion in the ATmosphere

Loading comments...