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

@@ -777,7 +777,9 @@ do -- COORDINATE
-- @return DCS#Vec2 Vec2
function COORDINATE:GetRandomVec2InRadius( OuterRadius, InnerRadius )
self:F2( { OuterRadius, InnerRadius } )
math.random()
math.random()
math.random()
local Theta = 2 * math.pi * math.random()
local Radials = math.random() + math.random()
if Radials > 1 then