BIS fnc randomInt: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
(call is missing from example)
Line 16: Line 16:
Returns a random integer between the two passed numbers (inclusive).
Returns a random integer between the two passed numbers (inclusive).


Example: [1,3] BIS_fnc_randomInt OR [3,1] call BIS_fnc_randomInt
Example: [1,3] call BIS_fnc_randomInt OR [3,1] call BIS_fnc_randomInt
Returns: 1, 2, or 3
Returns: 1, 2, or 3
************************************************************/
************************************************************/

Revision as of 01:39, 27 June 2015


Hover & click on the images for description

Description

Description:
/************************************************************
	Random Integer

Parameters: [bound 1, bound 2]

Returns a random integer between the two passed numbers (inclusive).

Example: [1,3] call BIS_fnc_randomInt OR [3,1] call BIS_fnc_randomInt
Returns: 1, 2, or 3
************************************************************/

(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