Find a random (uniformly distributed) position within the given area without rejection sampling.
_area | The area to find a position within <MARKER, TRIGGER, LOCATION, ARRAY> |
_perimeter | True to return only positions on the area perimeter (optional, default: false) <BOOLEAN> |
Position ARRAY (Empty array if invalid area was provided)
_position = [marker, true] call CBA_fnc_randPosArea; _position = [trigger] call CBA_fnc_randPosArea; _position = [location] call CBA_fnc_randPosArea; _position = [[center, a, b, angle, isRectangle]] call CBA_fnc_randPosArea;
SilentSpike 2015-07-06