BIS fnc randomIndex: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "|Game version=" to "|Game version= |gr1= Arrays |GROUP1") |
m (Text replacement - "\[\[Category\:Function Group\: Arrays(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "") |
||
Line 33: | Line 33: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Functions|{{uc:randomIndex}}]] | [[Category:Functions|{{uc:randomIndex}}]] | ||
[[Category:{{Name|arma2}}: Functions|{{uc:randomIndex}}]] | [[Category:{{Name|arma2}}: Functions|{{uc:randomIndex}}]] |
Revision as of 14:18, 12 October 2020
Description
- Description:
- GROUP1 ____________________________________________________________________________________________
- Execution:
- call
- Groups:
- Arrays
Syntax
- Syntax:
- Return a random integer representing an index in the passed array.
- Parameters:
- array: Array of Anything
- Return Value:
- array call BIS_fnc_randomIndex
Examples
- Example 1:
["a",0,objNull] call BIS_fnc_randomIndex; // returns 0, 1 or 2
Additional Information
- See also:
- Number
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note