make the AI walk randomly when it reaches a patrol point

you could probably reuse some code here, have a node ‘find move location’, in the node check if it wants a patrol or random location and return it.

keep move to as a separate node which you have already instead of patrol node and a moverandom node.

just in case you mean how to find a random location there is a function called getrandomlocationinreachableradius()