{"name":"BIS_fnc_randomIndex","title":"BIS fnc randomIndex","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_randomIndex","revid":327174,"updated":"2022-07-12T22:07:07Z","groups":["Arrays"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","description":"Return a random integer representing an index in the passed array.","syntaxes":[{"syntax":"array call BIS_fnc_randomIndex","params":[{"name":"array","type":"Array of Anything","type_expr":"Array<Anything>"}],"returns":{"type":"Number","type_expr":"Number"}}],"examples":[{"code":["[\"a\", 0, objNull] call BIS_fnc_randomIndex; // returns 0, 1 or 2"]}],"see_also":["floor","count","random","selectRandom"]}