function GetUnitsInRangeOfLocMatching takes real radius,location whichLocation,boolexpr filter returns group
// bj_randomSubGroupGroup is a global group variable and should be safe to use since its intended function leaks due to LDLHVRCL anyway
set bj_randomSubGroupGroup = CreateGroup()
call GroupEnumUnitsInRangeOfLoc(bj_randomSubGroupGroup, whichLocation, radius, filter)
call DestroyBoolExpr(filter)
return bj_randomSubGroupGroup
endfunction