Issue caused by f0e7622856
This commit is contained in:
icomrade
2014-06-13 16:50:39 -04:00
parent aa416e43fc
commit 0176e5efbb
2 changed files with 6 additions and 6 deletions

View File

@@ -15,9 +15,10 @@ private "_ret";
if(count _this > 0) then
{
_ret = count _this; //number of elements in the array
//_ret = count _this; //number of elements in the array
//_ret = [0, _ret] call BIS_fnc_randomInt; //choose random index
_ret = floor(random _ret);
_ret = floor(random(count _this));
_ret = _this select _ret; //get the element, return it
};
_ret
_ret;