good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^3: A little golfing challenge: replace digits by random lettersby vr (Curate) |
on Feb 10, 2019 at 14:12 UTC ( [id://1229721]=note: print w/replies, xml ) | Need Help?? |
Perhaps sort{rand(2)-1} (in effect, same as sort{0}) is somewhat too deterministic :). But $ perl -E 'say sort{rand 2}a..z'produces random enough strings, and is shorter.
In Section
Seekers of Perl Wisdom
|
|