Fixed Error in expression

Error in expression <_ret = _this select _ret;
};
_ret
>
Error position: <_ret
>
Error Undefined variable in expression: _ret
File z\addons\dayz_code\compile\BIS_fnc\fn_selectRandom.sqf, line 23
Error in expression <BIS_fnc_selectRandom;
_outputWeapons =
[_selectedWeapon];
_selectedMag = _select>
Error position: <_selectedWeapon];
_selectedMag = _select>
Error Undefined variable in expression: _selectedweapon
File z\addons\dayz_code\actions\player_craftItem.sqf, line 193
Error in expression <t_doLoop = false;
};
{
player addWeapon _x;
}
forEach _outputWeapons;
{

_itemOu>
Error position: <_x;
} forEach _outputWeapons;
{

_itemOu>
Error Undefined variable in expression: _x
File z\addons\dayz_code\actions\player_craftItem.sqf, line 200