text_text_randomizer
Randomize text by shuffling words, lines, characters, sentences, or paragraphs. Optionally use a seed for reproducible results.
Instructions
Randomize and Shuffle Text. Randomly shuffle the contents of text in one of five modes set by randomizeType: 'words', 'lines' (default), 'characters', 'sentences', or 'paragraphs'. Use this to scramble word/line/character order for puzzles, test fixtures, or anonymizing sample data; unlike text_sort_lines (deterministic ordering) and reverse_text (exact reversal), the order here is non-deterministic unless you pass an integer seed for a reproducible shuffle. Optional preserveFormatting keeps line breaks/whitespace in place (applies only to the 'words' and 'characters' modes). Runs locally on the input you provide: read-only, non-destructive, contacts no external service, and is rate-limited (60 requests/minute for anonymous callers). Returns the randomized text plus before/after statistics and the effective options.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to randomize. Must not be blank (an empty value returns a 400 error). | |
| randomizeType | No | What unit to shuffle. Unrecognized values return the input text unchanged. | lines |
| preserveFormatting | No | When true, keeps line breaks and whitespace positions; only affects the words and characters modes. | |
| seed | No | Optional integer seed for a reproducible shuffle. Omit or null for true randomness via Math.random. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | Whether randomization succeeded. | |
| result | No | The randomized output text. | |
| stats | No | Before/after metrics and per-mode randomization counts. | |
| options | No | The effective options after defaults were applied. |