BIS fnc randomIndex: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
m (copy paste error)
Line 16: Line 16:
This returns a random integer representing an index in the passed array.
This returns a random integer representing an index in the passed array.


Example: [1,2,3] call BIS_fnc_selectRandom
Example: [1,2,3] call BIS_fnc_randomIndex
Returns: 0, 1, or 2
Returns: 0, 1, or 2
************************************************************/
************************************************************/

Revision as of 10:28, 26 January 2015


Hover & click on the images for description

Description

Description:
/************************************************************
	Random Index

Parameters: array

This returns a random integer representing an index in the passed array.

Example: [1,2,3] call BIS_fnc_randomIndex
Returns: 0, 1, or 2
************************************************************/

(Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki)
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
Syntax needed
Return Value:
Return value needed

Examples

Example 1:

Additional Information

See also:
See also needed

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

Notes

Bottom Section