Thanks! You are right, it's not totally random. The game choose one random normal move and one random attack move (if possible). So as soon as there is one possibility to attack, it will be suggested.