How to synchronize random animations in multiplayer games?

My model has five idle animations, I use Random Sequence Player in the animation blueprint for random playback, and then running three clients, I find that the model’s animations are not synchronized.

I thought of adding a property called SequenceIndex to the Character, which is replicable and used to control which idle animation to play, but the problem is that I have no way of knowing that the animation is finished, so what should I do?