in reply to A little golfing challenge: replace digits by random letters
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: A little golfing challenge: replace digits by random letters
by bliako (Abbot) on Feb 10, 2019 at 13:02 UTC | |
by vr (Curate) on Feb 10, 2019 at 14:12 UTC | |
by bliako (Abbot) on Feb 10, 2019 at 15:28 UTC |