Random Number Gen for AI

im working on an ai and i want to do a stalking effect what im thinking is having a random number generator that says on see pawn generate number if 1 wait 2 sec then generate new number if 2 attack player does anyone see a problem with a system like that or know a better way to get the same effect examples would help

You can use FMath:RandRange to generate your 1 or 2 to start implementing your idea.


No comment on the design of the AI as I’d need more context to give an opinion.