> For the complete documentation index, see [llms.txt](https://documentation.botghost.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.botghost.com/custom-commands-and-events/actions/music-actions/shuffle-queue.md).

# Shuffle Queue

{% hint style="warning" %}
This action requires a [Premium Subscription](/premium/premium-and-priority-hosting-plans.md#premium-plans) to function.
{% endhint %}

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

The Shuffle Queue action randomizes the order of all tracks currently in the music queue.

## Server

This setting selects which server the action applies to. You have two options to choose from:

{% tabs %}
{% tab title="Current Server" %}

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

When you choose the Current Server option, the music queue will be shuffled on the server where the command is executed.
{% endtab %}

{% tab title="Server ID" %}

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

When you select the Server ID option, the music queue will be shuffled in the server matching the provided ID.

### Server ID

In this field, you can enter the ID of the server where you want the music queue to be shuffled. Variables can be used in this field.
{% endtab %}
{% endtabs %}
