> From the BotGhost docs: https://botghost.com/docs/custom-commands-and-events/actions/music-actions/shuffle-queue
> Every page: https://botghost.com/docs/llms.txt

# Shuffle Queue

> **Warning:** This action requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.

![](https://botghost.com/docs/content/assets/workspace/%7BDB3C449D-5D91-47E0-B68E-B1710EB1E63B%7D.png)

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:

**Current Server**

![](https://botghost.com/docs/content/assets/workspace/image%20(1227).png)

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

**Server ID**

![](https://botghost.com/docs/content/assets/workspace/image%20(1228).png)

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.
