# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://malbersanimations.gitbook.io/animal-controller/global-components/animator-behaviours/random-behaviour.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
