in reply to Re^2: A little golfing challenge: replace digits by random letters
in thread A little golfing challenge: replace digits by random letters

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.

Replies are listed 'Best First'.
Re^4: A little golfing challenge: replace digits by random letters
by bliako (Abbot) on Feb 10, 2019 at 15:28 UTC

    ai! indeed it is. got bitten by int. This is uniformly random sort{rand(6)-4} and so is this sort{1-rand(3)%3}