Skip to content

Instantly share code, notes, and snippets.

@styxyang
Created July 18, 2013 05:33
Show Gist options
  • Save styxyang/6026911 to your computer and use it in GitHub Desktop.
Save styxyang/6026911 to your computer and use it in GitHub Desktop.
I tried my best to use one-line perl script to reach this... But I actually want to achieve the effects in comments, though failed.
perl -e '@r = ("A".."Z", 0..9); foreach (1..shift) { print join "", @r[ map { rand @r } 1..16 ], "\n" }' -- 8
# perl -e 'print join "", ("A".."Z")[ map { rand @("A".."Z") } 1..shift ], "\n"' -- 16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment