# Random Behaviour

## Overview

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2FAFAu1Mr7Iv49U771MK6U%2Fimage.png?alt=media&#x26;token=0803851a-2d16-4435-b2cc-64f4943c05d2" 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="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2FLuYqRFH2Bk7wvx5CYmYf%2Fimage.png?alt=media&#x26;token=262d190e-311c-44a0-b194-cda347be23e2" 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>
