BIS fnc arrayShuffle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Page filling)
m (Text replacement - "\[\[Category\:Function Group\: Arrays(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "")
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|= Comments
{{Function|Comments=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 5: Line 5:


|0.58|Game version=
|0.58|Game version=
|gr1= Arrays|GROUP1=
____________________________________________________________________________________________
____________________________________________________________________________________________


| Return a new array with randomized order of elements from input array.<br />
| Return a new array with randomized order of elements from input array. |Description=
{{Informative|This function does not ''necessarily'' change array order, as randomisation can return the original values order.}} |Description=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 33: Line 34:
<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Functions|{{uc:arrayShuffle}}]]
[[Category:Functions|{{uc:arrayShuffle}}]]
[[Category:Function Group: Arrays|{{uc:arrayShuffle}}]]
 
[[Category:{{Name|arma3}}: Functions|{{uc:arrayShuffle}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:arrayShuffle}}]]

Revision as of 12:17, 12 October 2020

Hover & click on the images for description

Description

Description:
Return a new array with randomized order of elements from input array.
Execution:
call
Groups:
Arrays

Syntax

Syntax:
array call BIS_fnc_arrayShuffle
Parameters:
array: Array
Return Value:
Array - a new array instance

Examples

Example 1:
[1,2,3] call BIS_fnc_arrayShuffle; // can return [1,2,3], [3,1,2], [2,3,1], [1,3,2], [2,1,3] or [3,2,1]

Additional Information

See also:
sortBIS_fnc_sortByrandom

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