BIS_fnc_randomIndex

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 2 version1.00
  

Click on the images for descriptions

Introduced in

Game:
Arma 2
Version:
1.00

Description

Description:
Return a random integer representing an index in the passed array.

Syntax

Syntax:
array call BIS_fnc_randomIndex
Parameters:
array: Array of Anything
Return Value:
Number

Examples

Example 1:
["a",0,objNull] call BIS_fnc_randomIndex; // returns 0, 1 or 2

Additional Information

Execution:
call
Multiplayer:
-
See also:
floorcountrandomselectRandom

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section