Not a perfect shuffle, but close (enough?) and much shorter:
perl -M5';$x=join"",sort{rand()<rand}a..z' -pe 'eval"tr/0-9/$x/"' input.txt
In reply to Re: A little golfing challenge: replace digits by random letters
by BrowserUk
in thread A little golfing challenge: replace digits by random letters
by haukex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |