Text Tools

Shuffle Lines

Live

Randomly reorder lines using browser cryptographic randomness.

About Shuffle Lines

Randomly reorder lines using browser cryptographic randomness. Enter lines in a purpose-built shuffle lines interface designed for this subject. A Fisher–Yates shuffle uses Web Crypto random values locally. The result includes result, changes, lines, supporting detail, and clear units or diagnostics. Results depend on the entered assumptions, units, and rounding. Review important decisions against authoritative requirements. Processing stays in your browser, and UtilityPages does not store the values you enter.

Set up Shuffle Lines

Workspace

Source workbench

Edit the source fields below and inspect the rendered output alongside your work.

This workspace updates as you edit.

Enter lines.

Shuffle Lines result

Enter the values above, then transform to see a detailed result.

How Shuffle Lines works

A Fisher–Yates shuffle uses Web Crypto random values locally.

How it works

A Fisher–Yates shuffle uses Web Crypto random values locally. Results depend on the entered assumptions, units, and rounding. Review important decisions against authoritative requirements.

Examples

Shuffle Lines worked example

Example input
{
    "source": "Ada\nGrace\nLinus\nMargaret"
}
Expected result
{
    "result": "Ada\nLinus\nGrace\nMargaret",
    "change_count": 2,
    "line_count": 4
}

Privacy

This tool does not store your inputs or results on UtilityPages.org.

Citations & sources

  1. Web Cryptography API

Frequently asked questions

How does the Shuffle Lines work?

A Fisher–Yates shuffle uses Web Crypto random values locally.

What information should I enter?

Enter lines. Use values and units from the same scenario so the result is internally consistent.

What results does this tool provide?

It reports result, changes, lines, including intermediate context where it helps you review the answer.

What limitations should I know about?

Results depend on the entered assumptions, units, and rounding. Review important decisions against authoritative requirements.