DMS_Exile/@ExileServer/addons/a3_dms/scripts/fn_SelectRandomVal.sqf
eraser1 e3d11a0aa5 Initial Test Branch Commit
Lots of optimizations...
2016-05-06 22:44:48 -05:00

26 lines
354 B
Plaintext

/*
DMS_fnc_SelectRandomVal
Created by eraser1
Usage:
[
_min,
_max
] call DMS_fnc_SelectRandomVal;
Returns a random value between _min and _max.
*/
if !(params
[
["_min",0,[0]],
["_max",0,[0]]
])
exitWith
{
diag_log format ["DMS ERROR :: Calling DMS_fnc_SelectRandomVal with invalid parameters: %1",_this];
};
_min + random(_max - _min)