There are several ways to do this...but in this particular case it is with waypoint.Creating a random patrols in arma is necessary for your mission.
VIDEO EXAMPLE
*Create a group
- give them a waypoint
- in ON ACT field of waypoint put this code " nul=[group this, position this, 100] call BIS_fnc_taskPatrol; "