← All nodes
Unstructured Text

Shuffle Lines

Put the lines of your list into a random order with a fair shuffle.

When to use it

Typical uses: Picking a random winner for a draw; Randomising quiz or survey questions; Setting a fair speaking or presentation order.

In a pipeline

Settings

SettingTypeRequiredDefault or hint
Text columnselect—Text
Generate New Columncheckbox—false
New Column Nametext—Default: <column> Result
Insert Afterselect—After the column
When a value cannot be convertedselect—stop

Example

Shuffle Lines: an example

    Text arriving
    Text
    Alice Ben Chloe Daniel Emma
    The text after this node
    Text
    Chloe Emma Alice Daniel Ben

    One possible result (yours will differ):

    Worth knowing

    • Is the shuffle truly random? It uses a cryptographically secure random source and an unbiased algorithm, so every order has the same chance.
    • Are empty lines shuffled too? Yes. Remove them first with Remove Empty Lines if you do not want them.
    • Can I undo a shuffle? No. Keep a copy of your original list if you need it.
    • Works on any text column, not only Text Input's: pick it under Text column. Tick Generate New Column to keep the original next to the result.

    Others in Unstructured Text