More randomness in functions using random coordinates

This commit is contained in:
Applevangelist
2025-08-07 11:30:39 +02:00
parent c75c3d8777
commit 674c6eec81
5 changed files with 29 additions and 2 deletions

View File

@@ -73,6 +73,11 @@ end
-- @param #table points The points of the triangle, or 3 other points if you're just using the TRIANGLE class without an object of it
-- @return #table The random Vec2
function TRIANGLE:GetRandomVec2(points)
math.random()
math.random()
math.random()
points = points or self.Points
local pt = {math.random(), math.random()}
table.sort(pt)