Word Scrambler
Input a word to output all random anagram combinations (limited to 100 for large words).
Input a word to output all random anagram combinations (limited to 100 for large words).
A scrambled word has the same letters as the original but in a random order. Scrambled words are used in educational word puzzles, cryptograms, and the study of how humans recognize words.
An anagram rearranges the letters of a word or phrase to form a different word or phrase using all the same letters exactly once. "Listen" and "Silent" are anagrams. "Astronomer" → "Moon starer". Famous anagram tools include anagrammer.com. Unlike scrambling, anagram solving requires finding valid words from the rearrangement.
Classic word jumbles (like the newspaper "Jumble" puzzle) scramble a set of 4–6 words. Solvers unscramble each word and then use circled letters from the solutions to solve a final phrase. The difficulty scales with word length — 5-letter words have 120 possible arrangements (5! = 120).
Use the Fisher-Yates shuffle: iterate backwards through the array and swap each element with a randomly chosen element at or before its index. for (let i = arr.length - 1; i > 0; i--) { const j = Math.floor(Math.random() * (i + 1)); [arr[i], arr[j]] = [arr[j], arr[i]]; } This produces a uniformly random permutation.