Elektrine lite

← Feed

@MousePotatoDoesStuff@lemmy.world

Post #2225092

2026-04-20 19:50 UTC

I already named the variables minimum and maximum, so inclusive should make more sense. The code generates a vector within a square/cube defined by 2 other vectors. Those are all good questions, and yes. - It saves time because I (and future plugin users) don't have to implement placing a vector in 2/3d space randomly, and it makes the code cleaner. - Not a lot, and yes. - The function is pretty much set-and-forget, but I might write an unit test just in case the laws of mathematics change overnight.

Replies (0)

No replies.