animRandomiser Script
For randomising animation idles, uses a weighted list so that when an animation has played it wont play a second time in a row. It then increses the odds of other animations of playing reducing the chance of repetition. This also makes it so the longer an animation does not play the higher the chance it plays next time.
randomOnStateEnter StateMachineBehaviour
Placing this script onto an animation state will call the animRandomiser script on state entry, so long as the animRandomiser script is placed next to the Animator.
animRandomiser and randomOnStateEnter used in context