> For the complete documentation index, see [llms.txt](https://malbersanimations.gitbook.io/animal-controller/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://malbersanimations.gitbook.io/animal-controller/global-components/animator-behaviours/random-behaviour.md).

# Random Behaviour

## Overview

<figure><img src="/files/4hikC2E4CU0OzVRi0JhK" alt=""><figcaption></figcaption></figure>

The random behaviour component is used to activate random animations in a state machine.

## Parameters

### Range

Max Random Value Range - from 1 to \<Range>

### Priority

Priority of the random behaviour - other layers may also be using the random behaviour too.&#x20;

## Example

<figure><img src="/files/hh6lrdpRprdGCfwYSqHQ" alt=""><figcaption></figcaption></figure>

In this example, we are using the random behaviour to play a random idle clip inside of the Idle's default state machine. This way, when the character is idling, they don't just use the same random clip over and over. \
\
For more information watch our video on YouTube at this specific location:\
<https://youtu.be/q5tAmVpqSWA?t=442>
