Description
Selects one of the arguments at random.
Note
Arma 3: Use selectRandom instead.
Syntax
values call BIS_fnc_selectRandom
Parameters:
values: Array - array of values of which one will be selected at random
Returns: Anything - one of the values you passed, chosen at random
Examples
Example 1
private _bestShooter = [_rento, _ben, _trit] call BIS_fnc_selectRandom; // returns one of the variables
_bestSeries = [["halo1","halo2"],["ofp","arma2"]] call BIS_fnc_selectRandom; // returns one of the arrays