GetRandomLocInCircle
not ratedComputes a random point in a circle with equal distribution.
function GetRandomLocInCircle takes location center, real radius returns location
local real dist = SquareRoot(GetRandomReal(0,1))*radius
local real angle = GetRandomReal(0,2*bj_PI)
return Location(GetLocationX(center)+dist*Cos(angle), GetLocationY(center)+dist*Sin(angle))
endfunctionNo comments.