selectRandom

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 3 version 1.56
  

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.56

Description

Description:
Returns a random element from the given array. Engine solution to BIS_fnc_selectRandom

Syntax

Syntax:
selectRandom array
Parameters:
array: Array - array of anything
Return Value:
Anything - random value

Examples

Example 1:
_randomElement = selectRandom [1,2,3,4,5];

Additional Information

Multiplayer:
-
See also:
selectRandomWeightedrandomselectselectMinselectMax

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